Package org.yamcs.studio.explorer
Class OpenWithMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.yamcs.studio.explorer.OpenWithMenu
- All Implemented Interfaces:
IContributionItem
A menu for opening files in the workbench.
An OpenWithMenu is used to populate a menu with "Open With" actions. One action is added for each editor which is applicable to the selected file. If the user selects one of these items, the corresponding editor is opened on the file.
This class may be instantiated; it is not intended to be subclassed.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOpenWithMenu
(IWorkbenchPage page, IAdaptable file) Constructs a new instance of OpenWithMenu. -
Method Summary
Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Field Details
-
ID
The id of this action.- See Also:
-
-
Constructor Details
-
OpenWithMenu
Constructs a new instance of OpenWithMenu.- Parameters:
page
- the page where the editor is opened if an item within the menu is selectedfile
- the selected file
-
-
Method Details
-
fill
- Specified by:
fill
in interfaceIContributionItem
- Overrides:
fill
in classContributionItem
-
isDynamic
public boolean isDynamic()- Specified by:
isDynamic
in interfaceIContributionItem
- Overrides:
isDynamic
in classContributionItem
-