|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.editor.plugins.AbstractClickPlugin
oracle.ide.ceditor.AbstractBrowseClickPlugin
public abstract class AbstractBrowseClickPlugin
The AbstractBrowseClickPlugin
is an assistance plugin that listens for Ctrl-Click's to perform "Go to declaration" functionality
Field Summary | |
---|---|
protected java.lang.String |
_lastStatusText The last status text this plugin set into the IDE status bar. |
protected static int |
ACTION_DECLARATION The action constant for "Go to declaration". |
Fields inherited from class oracle.javatools.editor.plugins.AbstractClickPlugin |
---|
ACTION_NONE, ALL_MODIFIER_MASK, DEFAULT_DELAY_TIME |
Constructor Summary | |
---|---|
AbstractBrowseClickPlugin() |
Method Summary | |
---|---|
protected int |
getActionTypeFor(java.awt.event.MouseEvent event) Fetch the subclass-specific action type that corresponds to the given event (which may be a mouse moved, or mouse clicked event). |
protected HighlightStyle |
getHighlightStyleFor(int actionType) Fetch the HighlightStyle which should be used for highlighting the a given region for the specified action type. |
protected java.lang.String |
getHintTextFor(int actionType) Fetch the hint text that should be displayed in the editor status bar for the given action type. |
protected abstract NumberRange |
getIdentifierAtOffset(int offset) Utility routine to determine the identifier at the given offset, or null if there is none. |
protected NumberRange |
getRegionFor(int offset, int actionType) Fetch the NumberRange instance for the underlinable region that includes the given offset. |
protected void |
handleClickAction(java.awt.Point clickPoint, int actionType) Perform the subclass-specific click action at the given click point, and action type. |
protected abstract void |
performDeclarationClick(java.awt.Point point) Utility routine to handle the control/meta click on the given click location. |
static void |
registerHighlights() |
protected void |
updateHint(int actionType) Update the current hint text that is displayed in the editor. |
Methods inherited from class oracle.javatools.editor.plugins.AbstractClickPlugin |
---|
actionPerformed, caretUpdate, deinstall, getDocument, getEditorPane, getTextBuffer, getUpdateDelayTime, hasModifierEx, install, isActionTrigger, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, propertyChange, updateHighlight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int ACTION_DECLARATION
protected java.lang.String _lastStatusText
Constructor Detail |
---|
public AbstractBrowseClickPlugin()
Method Detail |
---|
protected int getActionTypeFor(java.awt.event.MouseEvent event)
getActionTypeFor
in class AbstractClickPlugin
event
- the mouse event that occurredprotected void handleClickAction(java.awt.Point clickPoint, int actionType)
getActionTypeFor()
for the mouse click event.handleClickAction
in class AbstractClickPlugin
clickPoint
- the click point where the mouse click event occurredactionType
- the action type the modifiers on the event mapped toprotected HighlightStyle getHighlightStyleFor(int actionType)
HighlightStyle
which should be used for highlighting the a given region for the specified action type.getHighlightStyleFor
in class AbstractClickPlugin
actionType
- the action type the modifiers map toprotected java.lang.String getHintTextFor(int actionType)
getHintTextFor
in class AbstractClickPlugin
actionType
- the action type the modifiers map toprotected NumberRange getRegionFor(int offset, int actionType)
NumberRange
instance for the underlinable region that includes the given offset.getRegionFor
in class AbstractClickPlugin
offset
- the offset the mouse hovered overactionType
- the action type based on the modifiers of the eventprotected void updateHint(int actionType)
updateHint
in class AbstractClickPlugin
actionType
- the subclass-specific action typeprotected abstract void performDeclarationClick(java.awt.Point point)
protected abstract NumberRange getIdentifierAtOffset(int offset)
offset
- the offset to checkpublic static void registerHighlights()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |