Package org.csstudio.ui.util
Class PopupMenuUtil
java.lang.Object
org.csstudio.ui.util.PopupMenuUtil
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 menuviewSite
- the view site that hosts the viewselectionProvider
- the selection used to create the context menu
-