|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.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
Deprecated. use CodeEditorConstants |
static int |
EDIT_SELECTED_ONLY_CMD_ID
Deprecated. use CodeEditorConstants |
static int |
FORMAT_CMD_ID
Deprecated. use CodeEditorConstants |
static int |
UNDO_WRAPPER_MSG
Deprecated. use CodeEditorConstants |
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 | |
---|---|
void |
checkCommandsAfterNavigation(Context context)
Utility routine which is used to verify command sensitivity after a change in the caret position of the editor. |
static CodeEditor |
getCodeEditorFromContext(Context context)
Utility routine to fetch the CodeEditor instance from the context. |
static CodeEditorController |
getDefaultController()
Get the default singleton controller. |
static BasicEditorPane |
getEditorPaneFromContext(Context context)
Utility routine to fetch the BasicEditorPane instance from the context. |
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 |
---|
@Deprecated public static final int EDIT_SELECTED_ONLY_CMD_ID
@Deprecated public static final int FORMAT_CMD_ID
@Deprecated public static final java.lang.String CATEGORY_SOURCE_MENU
@Deprecated public static final int UNDO_WRAPPER_MSG
Method Detail |
---|
public static CodeEditorController getDefaultController()
public void checkCommandsAfterNavigation(Context context)
context
- the current contextpublic static final CodeEditor getCodeEditorFromContext(Context context)
context
- the current context
public static final BasicEditorPane getEditorPaneFromContext(Context context)
context
- the current context
public 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 context
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |