Interface IContextMenuContributor

All Superinterfaces:
IContextMenuContributorFormControl<org.eclipse.jface.viewers.Viewer>
All Known Implementing Classes:
ActionsPanel, ContextMenuContributorAdapter, TablePanel, ValuePanel

public interface IContextMenuContributor extends IContextMenuContributorFormControl<org.eclipse.jface.viewers.Viewer>
Contributes to the menu for Editor parts, when registerViewer or createMenu in the Editor part is called.
Author:
Christopher Mindus
  • Method Details

    • prependMenuItems

      void prependMenuItems(org.eclipse.jface.viewers.Viewer viewer, IzMenu menu, DesignerProp target)
      Called to prepend menu items.
      Specified by:
      prependMenuItems in interface IContextMenuContributorFormControl<org.eclipse.jface.viewers.Viewer>
      Parameters:
      viewer - The viewer.
      menu - The pop-up menu.
      target - The selected target in the viewer, null for none.
    • appendMenuItems

      void appendMenuItems(org.eclipse.jface.viewers.Viewer viewer, IzMenu menu, DesignerProp target)
      Called to append menu items.
      Specified by:
      appendMenuItems in interface IContextMenuContributorFormControl<org.eclipse.jface.viewers.Viewer>
      Parameters:
      viewer - The viewer.
      menu - The pop-up menu.
      target - The selected target in the viewer, null for none.
    • doAddExpandCollapseAll

      boolean doAddExpandCollapseAll(org.eclipse.jface.viewers.Viewer viewer, IzMenu menu, DesignerProp target)
      Checks if expand/collapse all menu items should be added.
    • getTarget

      DesignerProp getTarget()
      Gets the default target when none other is found for the pop-up menu in the viewer.
      Specified by:
      getTarget in interface IContextMenuContributorFormControl<org.eclipse.jface.viewers.Viewer>
      Returns:
      The target, or null to use the default edited property.