Class PopupMenuAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuAction
- All Implemented Interfaces:
IMouseAction
IMouseAction to open a Menu.-
Constructor Summary
ConstructorsConstructorDescriptionPopupMenuAction(org.eclipse.jface.action.MenuManager menuManager) Creates aPopupMenuActionthat creates and shows aMenuthat is created everytime by the givenMenuManagerPopupMenuAction(org.eclipse.swt.widgets.Menu menu) Creates aPopupMenuActionthat opens the givenMenu. -
Method Summary
-
Constructor Details
-
PopupMenuAction
public PopupMenuAction(org.eclipse.swt.widgets.Menu menu) Creates aPopupMenuActionthat opens the givenMenu.- Parameters:
menu- TheMenuthat should be opened by this action.
-
PopupMenuAction
public PopupMenuAction(org.eclipse.jface.action.MenuManager menuManager) Creates aPopupMenuActionthat creates and shows aMenuthat is created everytime by the givenMenuManager- Parameters:
menuManager- TheMenuManagerthat should be used to create the context menu.- Since:
- 1.6
-
-
Method Details
-
run
Description copied from interface:IMouseActionTranslates the SWT MouseEvent to a NatTable command and executes that command accordingly.- Specified by:
runin interfaceIMouseAction- Parameters:
natTable- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event- The received MouseEvent.
-