public class ShowInMenu
extends org.eclipse.jface.action.ContributionItem
ShowInMenu is used to populate a menu manager with Show In actions. The items to show are determined
from the active perspective and active part.| Constructor and Description |
|---|
ShowInMenu(org.eclipse.ui.IWorkbenchWindow window,
java.lang.String id,
java.lang.String uri)
Creates a Show In menu.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index) |
protected org.eclipse.ui.IWorkbenchWindow |
getWindow() |
boolean |
isDirty() |
boolean |
isDynamic()
Overridden to always return true and force dynamic menu building.
|
public ShowInMenu(org.eclipse.ui.IWorkbenchWindow window,
java.lang.String id,
java.lang.String uri)
window - the window containing the menuprotected org.eclipse.ui.IWorkbenchWindow getWindow()
public boolean isDirty()
isDirty in interface org.eclipse.jface.action.IContributionItemisDirty in class org.eclipse.jface.action.ContributionItempublic boolean isDynamic()
isDynamic in interface org.eclipse.jface.action.IContributionItemisDynamic in class org.eclipse.jface.action.ContributionItempublic void fill(org.eclipse.swt.widgets.Menu menu,
int index)
fill in interface org.eclipse.jface.action.IContributionItemfill in class org.eclipse.jface.action.ContributionItem