Class PopupMenuAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuAction
-
- All Implemented Interfaces:
IMouseAction
public class PopupMenuAction extends Object implements IMouseAction
IMouseAction
to open aMenu
.
-
-
Constructor Summary
Constructors Constructor Description PopupMenuAction(org.eclipse.jface.action.MenuManager menuManager)
Creates aPopupMenuAction
that creates and shows aMenu
that is created everytime by the givenMenuManager
PopupMenuAction(org.eclipse.swt.widgets.Menu menu)
Creates aPopupMenuAction
that opens the givenMenu
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(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 aPopupMenuAction
that opens the givenMenu
.- Parameters:
menu
- TheMenu
that should be opened by this action.
-
PopupMenuAction
public PopupMenuAction(org.eclipse.jface.action.MenuManager menuManager)
Creates aPopupMenuAction
that creates and shows aMenu
that is created everytime by the givenMenuManager
- Parameters:
menuManager
- TheMenuManager
that 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:IMouseAction
Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.- Specified by:
run
in interfaceIMouseAction
- Parameters:
natTable
- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event
- The received MouseEvent.
-
-