public class AppServerWizardLauncher extends java.lang.Object implements ContextMenuListener, Controller
Modifier and Type | Field and Description |
---|---|
static int |
EDIT_APPSERVERCONNECTION_WIZARD |
static int |
EXPORT_APPSERVER_CONNECTIONS |
static int |
IMPORT_APPSERVER_CONNECTIONS |
static int |
NEW_APPSERVERCONNECTION_WIZARD |
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
Constructor and Description |
---|
AppServerWizardLauncher() |
Modifier and Type | Method and Description |
---|---|
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a
context 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 contextMenu)
This method is called just before a showing context menu is
dismissed.
|
void |
menuWillShow(ContextMenu contextMenu)
Called just before the context menu is shown.
|
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the
specified context.
|
public static final int NEW_APPSERVERCONNECTION_WIZARD
public static final int EDIT_APPSERVERCONNECTION_WIZARD
public static final int IMPORT_APPSERVER_CONNECTIONS
public static final int EXPORT_APPSERVER_CONNECTIONS
public void menuWillShow(ContextMenu contextMenu)
ContextMenuListener
menuWillShow
in interface ContextMenuListener
contextMenu
- the context menu being shownpublic void menuWillHide(ContextMenu contextMenu)
ContextMenuListener
ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu)
, since the IDE takes care of that
automatically.menuWillHide
in interface ContextMenuListener
contextMenu
- the context menu being hiddenpublic boolean handleDefaultAction(Context context)
ContextMenuListener
true
; otherwise it must return
false
. Processing of handleDefaultAction
stops on the first return of true
.handleDefaultAction
in interface ContextMenuListener
context
- the context on which the default action needs
to occur.public boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.handleEvent
in interface Controller
action
- action whose command is to be executed.public boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current context