Class PopupMenuUtil

java.lang.Object
org.csstudio.ui.util.PopupMenuUtil

public class PopupMenuUtil extends Object
Utility class to register context pop-up menus.

In Eclipse RCP, pop-up have to be independently defined and attached for each part. This class provides utility method to register the pop-ups so that it's easier and more consistent through-out CSS.

  • Constructor Details

    • PopupMenuUtil

      public PopupMenuUtil()
  • Method Details

    • installPopupForView

      public static void installPopupForView(Control control, IWorkbenchPartSite viewSite, ISelectionProvider selectionProvider)
      Use this to install a pop-up for a view where the contribution are all taken from the extension mechanism.
      Parameters:
      control - component that will host the pop-up menu
      viewSite - the view site that hosts the view
      selectionProvider - the selection used to create the context menu