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, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, 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, setToolTipText
public 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.run
in interface IAction
run
in class Action
How radio buttons are handled
,
How check boxes are handled
public void dispose()
ActionFactory.IWorkbenchAction
dispose
in interface ActionFactory.IWorkbenchAction
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.