Class OpenAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.action.AbstractAction
-
- org.eclipse.jface.action.Action
-
- org.eclipse.ui.actions.BaseSelectionListenerAction
-
- com._1c.g5.v8.dt.navigator.ui.actions.OpenAction
-
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
,ISelectionChangedListener
public class OpenAction extends org.eclipse.ui.actions.BaseSelectionListenerAction
Standard action for opening an editor on the currently selected emf object(s).
-
-
Constructor Summary
Constructors Constructor Description OpenAction(org.eclipse.ui.IWorkbenchPage workbenchPage, IResourceLookup resourceLookup)
Creates a new action that will open editors on the then-selected emf objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Opens an editor(s) on the each selected elements, usingOpenHelper
.protected boolean
updateSelection(IStructuredSelection selection)
-
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction
clearCache, getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
-
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
-
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
OpenAction
public OpenAction(org.eclipse.ui.IWorkbenchPage workbenchPage, IResourceLookup resourceLookup)
Creates a new action that will open editors on the then-selected emf objects.- Parameters:
page
- the workbench page in which to open the editor, cannot benull
the
- resource lookup, cannot benull
-
-
Method Detail
-
run
public void run()
Opens an editor(s) on the each selected elements, usingOpenHelper
.- Specified by:
run
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
run
in classorg.eclipse.jface.action.Action
-
updateSelection
protected boolean updateSelection(IStructuredSelection selection)
- Overrides:
updateSelection
in classorg.eclipse.ui.actions.BaseSelectionListenerAction
-
-