public class TGOpenWithDynamicMenu extends ContributionItem
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.
This class is a copy of TGOpenWithMenu with some modifications, which allow this class to be used as an dynamic menu extension.
OpenWithMenu
Modifier and Type | Field and Description |
---|---|
static String |
ID
The id of this action.
|
Constructor and Description |
---|
TGOpenWithDynamicMenu()
Constructs a new instance of
TGOpenWithDynamicMenu . |
Modifier and Type | Method and Description |
---|---|
void |
fill(Menu menu,
int index) |
boolean |
isDynamic() |
dispose, fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
public static final String ID
public TGOpenWithDynamicMenu()
TGOpenWithDynamicMenu
.public void fill(Menu menu, int index)
fill
in interface IContributionItem
fill
in class ContributionItem
public boolean isDynamic()
isDynamic
in interface IContributionItem
isDynamic
in class ContributionItem