|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.ceditor.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 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 |
Constructor Summary | |
CodeEditorController(CodeEditor codeEditor)
Constructs a new CodeEditorController. |
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. |
protected void |
dispose()
Utility routine to ensure that we remove ourselves from any listeners that we were added to to ensure that references are cleared. |
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 |
hidePopup(BasicEditorPane editorPane)
Informs the editor client that the popup menu (if showing) should now be hidden. |
void |
poppingDown(ContextMenu popup)
Called just before the context menu is popping down. |
void |
poppingUp(ContextMenu popup)
Called just before the context menu is popping up. |
void |
showPopup(BasicEditorPane editorPane,
java.awt.event.MouseEvent mouseEvent)
Informs the editor client that the user requested a popup menu in the given editor pane, at the location specified in the mouseEvent. |
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 UNDO_WRAPPER_MSG
Constructor Detail |
public CodeEditorController(CodeEditor codeEditor)
Method Detail |
protected void dispose()
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 showPopup(BasicEditorPane editorPane, java.awt.event.MouseEvent mouseEvent)
showPopup
in interface PopupManager
editorPane
- the editorPane that the user request occurred inmouseEvent
- the mouse event describing the location of the
popup request.public void hidePopup(BasicEditorPane editorPane)
hidePopup
in interface PopupManager
editorPane
- the editorPane for which the popup should be hiddenpublic void poppingUp(ContextMenu popup)
poppingUp
in interface ContextMenuListener
popup
- the current view context menupublic void poppingDown(ContextMenu popup)
poppingDown
in interface ContextMenuListener
popup
- the current view context menupublic 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.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.