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 a Menu.
  • Constructor Details

    • PopupMenuAction

      public PopupMenuAction(org.eclipse.swt.widgets.Menu menu)
      Creates a PopupMenuAction that opens the given Menu.
      Parameters:
      menu - The Menu that should be opened by this action.
    • PopupMenuAction

      public PopupMenuAction(org.eclipse.jface.action.MenuManager menuManager)
      Creates a PopupMenuAction that creates and shows a Menu that is created everytime by the given MenuManager
      Parameters:
      menuManager - The MenuManager that should be used to create the context menu.
      Since:
      1.6
  • Method Details

    • 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 interface IMouseAction
      Parameters:
      natTable - The NatTable instance on which the MouseEvent was fired and on which the command should be executed.
      event - The received MouseEvent.