|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.ceditor.AbstractEditorHoverPlugin
public abstract class AbstractEditorHoverPlugin
The AbstractEditorHoverPlugin
is an abstract plugin
implementation that helps in performing code hover for Java-like languages
Constructor Summary | |
---|---|
AbstractEditorHoverPlugin()
|
Method Summary | |
---|---|
void |
deinstall(BasicEditorPane editor)
Called when the plugin is being removed from the BasicEditorPane (for example when the editor is closed.) This is used to notify plugins that they should unregister any listeners that were attached. |
protected abstract oracle.ide.hover.Hover |
getHover(BasicEditorPane editor,
java.util.List<oracle.ide.hover.HoverFlavor> flavors,
int offset,
java.awt.Rectangle rect)
Get the Hover object if the
installHoverableEditor(BasicEditorPane) is true, and
getRectangleOffsets has returned a valid value. |
protected abstract NumberRange |
getRectangleOffsets(BasicEditorPane editor,
int offset)
Get the offsets in the code editor for which a rectangle needs to be shown, when a Ctrl is pressed during a mouse hover. |
void |
install(BasicEditorPane editor)
Called when this plugin is being installed into the BasicEditorPane. |
protected abstract boolean |
installHoverableEditor(BasicEditorPane editor)
Check whether the code hover functionality should be added to the given editor. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractEditorHoverPlugin()
Method Detail |
---|
public void install(BasicEditorPane editor)
EditorPlugin
install
in interface EditorPlugin
editor
- the editor panepublic void deinstall(BasicEditorPane editor)
EditorPlugin
deinstall
in interface EditorPlugin
editor
- the editor panepublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
protected abstract boolean installHoverableEditor(BasicEditorPane editor)
editor
- The editor pane
protected abstract NumberRange getRectangleOffsets(BasicEditorPane editor, int offset)
editor
- The editor paneoffset
- The cursor position
protected abstract oracle.ide.hover.Hover getHover(BasicEditorPane editor, java.util.List<oracle.ide.hover.HoverFlavor> flavors, int offset, java.awt.Rectangle rect)
Hover
object if the
installHoverableEditor(BasicEditorPane)
is true, and
getRectangleOffsets
has returned a valid value.
Only return a Hover if the flavors list contains a flavor appropriate
for that hover (i.e. *don't* return a source Hover if a source hover flavor
isn't in the flavors list)
editor
- The editor paneflavors
- The flavors that can be hovered at this timeoffset
- The cursor positionrect
- The rectangle representing the offset's area
Hover
object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |