public class OpenWithMenu
extends org.eclipse.jface.action.ContributionItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The id of this action.
|
Constructor and Description |
---|
OpenWithMenu(org.eclipse.ui.IWorkbenchPage page,
org.eclipse.emf.ecore.EObject object)
Constructs a new instance of
OpenWithMenu . |
Modifier and Type | Method and Description |
---|---|
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index) |
boolean |
isDynamic() |
protected void |
openEditor(org.eclipse.ui.IEditorDescriptor editorDescriptor)
Opens the given editor on the selected object.
|
public OpenWithMenu(org.eclipse.ui.IWorkbenchPage page, org.eclipse.emf.ecore.EObject object)
OpenWithMenu
.page
- the page where the editor is opened if an item within the menu is selectedobject
- the selected objectpublic void fill(org.eclipse.swt.widgets.Menu menu, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class org.eclipse.jface.action.ContributionItem
public boolean isDynamic()
isDynamic
in interface org.eclipse.jface.action.IContributionItem
isDynamic
in class org.eclipse.jface.action.ContributionItem
protected void openEditor(org.eclipse.ui.IEditorDescriptor editorDescriptor)
editorDescriptor
- the editor descriptor, or null for the system editor