|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.addin.BaseController
oracle.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 | |
void |
checkCommands(Context context,
Controller activeController)
checkCommands() should be called on the controller associated with the active view whenever the Context changes. |
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. |
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 oracle.ide.addin.BaseController |
checkToolbarCommands, checkToolbarCommands, getView, supervisor |
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()
public void checkCommands(Context context, Controller activeController)
checkCommands
in interface Controller
checkCommands
in class BaseController
context
- the current context. Null values are acceptable.activeController
- the controller associated with the active view.
Null values are acceptable.protected void checkCommandsAfterNavigation(Context context)
context
- the current contextpublic boolean update(IdeAction action, Context context)
update
in interface Controller
update
in class BaseController
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
handleEvent
in class BaseController
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
public void poppingDown(ContextMenu popup)
poppingDown
in interface ContextMenuListener
public boolean handleDefaultAction(Context context)
handleDefaultAction
in interface ContextMenuListener
context
- the current context
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.