public class VCSContextualController extends VCSController
COMMAND_RESULT, VCS
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
Constructor and Description |
---|
VCSContextualController(int cmdId,
java.lang.String vcsId) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a
View
triggers the execution of a command. |
protected boolean |
isHandledAction(IdeAction action)
Is the specified action handled by this controller?
|
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the
specified context.
|
createCommand, handleEventImpl, invokeCommand, isSystemActive, preInvoke, preUpdate, updateImpl
public VCSContextualController(int cmdId, java.lang.String vcsId)
protected boolean isHandledAction(IdeAction action)
VCSController
isHandledAction
in class VCSController
public boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.handleEvent
in interface Controller
handleEvent
in class VCSController
action
- action whose command is to be executed.public boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
update
in class VCSController
action
- action whose command is to be executed.context
- the current context