|
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.CodeEditorController
public class CodeEditorController
The CodeEditorController
is the controller for the
CodeEditor Addin. It takes care of managing commands that this
CodeEditor supports (i.e., Cut, Copy, or Paste.)
Field Summary | |
---|---|
static java.lang.String |
CATEGORY_SOURCE_MENU
The category to which to add commands which appear in the Code/Source menu. |
static int |
EDIT_SELECTED_ONLY_CMD_ID
The command id for the edit selected only action. |
static int |
FORMAT_CMD_ID
The command id for the format/reformat action. |
static int |
UNDO_WRAPPER_CMD_ID
Command ID for UndoWrapperCommand |
static int |
UNDO_WRAPPER_MSG
This is the message that the user had new typed input |
Fields inherited from interface oracle.ide.controller.Controller |
---|
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED |
Method Summary | |
---|---|
protected void |
checkCommandsAfterNavigation(Context context)
Utility routine which is used to verify command sensitivity after a change in the caret position of the editor. |
javax.swing.JComponent[] |
gatherDynamicActions(Context context)
Called just before the dynamic menu is added to the main menu bar. |
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a popup menu. |
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
void |
menuWillHide(ContextMenu popup)
This method is called just before a showing context menu is dismissed. |
void |
menuWillShow(ContextMenu popup)
Called just before the context menu is popping up. |
boolean |
update(IdeAction action,
Context context)
This method is called when the availability of a specific command needs to be determined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNDO_WRAPPER_CMD_ID
public static final int EDIT_SELECTED_ONLY_CMD_ID
public static final int FORMAT_CMD_ID
public static final java.lang.String CATEGORY_SOURCE_MENU
public static final int UNDO_WRAPPER_MSG
Method Detail |
---|
protected void checkCommandsAfterNavigation(Context context)
context
- the current contextpublic boolean update(IdeAction action, Context context)
update
in interface Controller
action
- the action associated with this commandcontext
- the current context
public boolean handleEvent(IdeAction action, Context context)
View
triggers the execution of a command.
handleEvent
in interface Controller
action
- action whose command is to be executed.
public void menuWillShow(ContextMenu popup)
menuWillShow
in interface ContextMenuListener
popup
- the current view context menupublic void menuWillHide(ContextMenu popup)
ContextMenuListener
ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu)
, since the IDE takes care of that
automatically.
menuWillHide
in interface ContextMenuListener
popup
- the context menu being hiddenpublic boolean handleDefaultAction(Context context)
handleDefaultAction
in interface ContextMenuListener
context
- the current contextpublic javax.swing.JComponent[] gatherDynamicActions(Context context)
gatherDynamicActions
in interface DynamicMenuListener
context
- the current view context.
|
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 |