public final class OpenPerspectiveAction extends Action implements IPluginContribution
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT| Constructor and Description |
|---|
OpenPerspectiveAction(IWorkbenchWindow window,
IPerspectiveDescriptor descriptor,
PerspectiveMenu callback)
Constructs a new instance of
OpenPerspectiveAction |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalId() |
String |
getPluginId() |
void |
runWithEvent(Event event)
The default implementation of this
IAction method ignores
the event argument, and simply calls run(). |
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, removePropertyChangeListenerpublic OpenPerspectiveAction(IWorkbenchWindow window, IPerspectiveDescriptor descriptor, PerspectiveMenu callback)
OpenPerspectiveActionwindow - The workbench window in which this action is created; should
not be null.descriptor - The descriptor for the perspective that this action should
open; must not be null.callback - The perspective menu who will handle the actual execution of
this action; should not be null.public final void runWithEvent(Event event)
ActionIAction method ignores
the event argument, and simply calls run(). Subclasses
should override this method if they need information from the triggering
event, or override run() if not.runWithEvent in interface IActionrunWithEvent in class Actionevent - the SWT event which triggered this action being runpublic String getLocalId()
getLocalId in interface IPluginContributionnull.
This should correspond to the extension-specific identifier for
a given contribution.public String getPluginId()
getPluginId in interface IPluginContributionnull if
this contribution did not originate from a plugin.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.