Class PopupMenuBuilder.PopupContributionItem

java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuBuilder.PopupContributionItem
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem
Enclosing class:
PopupMenuBuilder

protected class PopupMenuBuilder.PopupContributionItem extends org.eclipse.jface.action.ContributionItem
Wrapper class to build up a ContributionItem based on a given IMenuItemProvider. If an id is set it is possible to register state checkers for enabled and visible state.
  • Constructor Details

  • Method Details

    • fill

      public void fill(org.eclipse.swt.widgets.Menu menu, int index)
      Specified by:
      fill in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      fill in class org.eclipse.jface.action.ContributionItem
    • isDynamic

      public boolean isDynamic()
      Specified by:
      isDynamic in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      isDynamic in class org.eclipse.jface.action.ContributionItem
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      isEnabled in class org.eclipse.jface.action.ContributionItem
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      isVisible in class org.eclipse.jface.action.ContributionItem
    • isSeparator

      public boolean isSeparator()
      Specified by:
      isSeparator in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      isSeparator in class org.eclipse.jface.action.ContributionItem