com.aptana.ide.core.ui.views.fileexplorer
Class OpenWithMenuExternal
java.lang.Object
org.eclipse.jface.action.ContributionItem
com.aptana.ide.core.ui.views.fileexplorer.OpenWithMenuExternal
- All Implemented Interfaces:
- org.eclipse.jface.action.IContributionItem
public class OpenWithMenuExternal
- extends org.eclipse.jface.action.ContributionItem
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 |
static java.lang.String |
ID
The id of this action. |
|
Method Summary |
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index)
|
boolean |
isDynamic()
|
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ID
public static final java.lang.String ID
- The id of this action.
- See Also:
- Constant Field Values
OpenWithMenuExternal
public OpenWithMenuExternal(org.eclipse.ui.part.ViewPart view,
IVirtualFile file)
- Constructs a new instance of
OpenWithMenu.
- Parameters:
view - file - the selected file
fill
public void fill(org.eclipse.swt.widgets.Menu menu,
int index)
- Specified by:
fill in interface org.eclipse.jface.action.IContributionItem- Overrides:
fill in class org.eclipse.jface.action.ContributionItem
- See Also:
IContributionItem.fill(org.eclipse.swt.widgets.Menu, int)
isDynamic
public boolean isDynamic()
- Specified by:
isDynamic in interface org.eclipse.jface.action.IContributionItem- Overrides:
isDynamic in class org.eclipse.jface.action.ContributionItem
- See Also:
IContributionItem.isDynamic()