public abstract class VCSContextMenuListener extends java.lang.Object implements ContextMenuListener
Utility listener class for handling context menu events.
| Constructor and Description |
|---|
VCSContextMenuListener(java.lang.String vcsId) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.awt.Component[] |
getContextMenuItems(Context context)
Gets the menu items to be added directly to the context menu when popup notification is received.
|
protected float |
getSection() |
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a context menu.
|
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 shown.
|
public boolean handleDefaultAction(Context context)
ContextMenuListenertrue; otherwise it must return false. Processing of handleDefaultAction stops on the first return of true.handleDefaultAction in interface ContextMenuListenercontext - the context on which the default action needs to occur.public void menuWillHide(ContextMenu popup)
ContextMenuListenerContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu), since the IDE takes care of that automatically.menuWillHide in interface ContextMenuListenerpopup - the context menu being hiddenpublic void menuWillShow(ContextMenu popup)
ContextMenuListenermenuWillShow in interface ContextMenuListenerpopup - the context menu being shownprotected abstract java.awt.Component[] getContextMenuItems(Context context)
context - the current context.protected float getSection()