Class PopupMenuAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuAction
-
- All Implemented Interfaces:
IMouseAction
public class PopupMenuAction extends Object implements IMouseAction
IMouseActionto open aMenu.
-
-
Constructor Summary
Constructors Constructor Description PopupMenuAction(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(NatTable natTable, org.eclipse.swt.events.MouseEvent event)Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
-
-
-
Constructor Detail
-
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 Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
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.
-
-