|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.OpenWithMenu
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 String |
ID
The id of this action. |
Constructor Summary | |
OpenWithMenu(IWorkbenchPage page)
Deprecated. As there is no way to set the file with this constructor use a different constructor. |
|
OpenWithMenu(IWorkbenchPage page,
IAdaptable file)
Constructs a new instance of OpenWithMenu . |
Method Summary | |
void |
fill(Menu menu,
int index)
The default implementation of this IContributionItem
method does nothing. |
boolean |
isDynamic()
The default implementation of this IContributionItem
method returns false . |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ID
Constructor Detail |
public OpenWithMenu(IWorkbenchPage page)
OpenWithMenu
.
page
- the page where the editor is opened if an item within
the menu is selectedpublic OpenWithMenu(IWorkbenchPage page, IAdaptable file)
OpenWithMenu
.
page
- the page where the editor is opened if an item within
the menu is selectedfile
- the selected fileMethod Detail |
public void fill(Menu menu, int index)
ContributionItem
IContributionItem
method does nothing. Subclasses may override.
fill
in interface IContributionItem
fill
in class ContributionItem
public boolean isDynamic()
ContributionItem
IContributionItem
method returns false
. Subclasses may override.
isDynamic
in interface IContributionItem
isDynamic
in class ContributionItem
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.