public class OpenInNewWindowAction extends Action implements ActionFactory.IWorkbenchAction
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 |
|---|
OpenInNewWindowAction(IWorkbenchWindow window)
Creates a new
OpenInNewWindowAction. |
OpenInNewWindowAction(IWorkbenchWindow window,
IAdaptable input)
Creates a new
OpenInNewWindowAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of this action.
|
void |
run()
The implementation of this
IAction method
opens a new window. |
void |
setPageInput(IAdaptable input)
Set the input to use for the new window's page.
|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, 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, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextpublic OpenInNewWindowAction(IWorkbenchWindow window)
OpenInNewWindowAction. Sets
the new window page's input to be an application-specific
default.window - the workbench window containing this actionpublic OpenInNewWindowAction(IWorkbenchWindow window, IAdaptable input)
OpenInNewWindowAction.window - the workbench window containing this actioninput - the input for the new window's pagepublic void setPageInput(IAdaptable input)
input - the inputpublic void run()
IAction method
opens a new window. The initial perspective
for the new window will be the same type as
the active perspective in the window which this
action is running in.public void dispose()
ActionFactory.IWorkbenchActiondispose in interface ActionFactory.IWorkbenchActionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.