Class OpenEditorHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.ui.commands.list.AbstractListElementHandler
-
- com._1c.g5.v8.dt.md.ui.commands.list.OpenEditorHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class OpenEditorHandler extends AbstractListElementHandler
Open editor, associated with selected metadata element and, optionally, specified feature to use.- See Also:
IV8ContextConstants.COMMAND_OPEN_EDITOR
-
-
Constructor Summary
Constructors Constructor Description OpenEditorHandler()
Creates a new instance ofOpenEditorHandler
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
protected org.eclipse.emf.databinding.FeaturePath
getFeatureParameter(org.eclipse.core.commands.ExecutionEvent event, org.eclipse.emf.ecore.EObject eObject)
Returns metadata object feature by obtaining parameter with feature name.-
Methods inherited from class com._1c.g5.v8.dt.ui.commands.list.AbstractListElementHandler
findReference, getContainingFeature, getContainingFeature, getContainingList, getElementContainer, getSelectedElement, getSelectedElementContainer, getSelectedElements, getSelection, setLookupChildren
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Constructor Detail
-
OpenEditorHandler
public OpenEditorHandler()
Creates a new instance ofOpenEditorHandler
.
-
-
Method Detail
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event)
-
getFeatureParameter
protected org.eclipse.emf.databinding.FeaturePath getFeatureParameter(org.eclipse.core.commands.ExecutionEvent event, org.eclipse.emf.ecore.EObject eObject)
Returns metadata object feature by obtaining parameter with feature name.- Parameters:
event
- the handle execution event, cannot benull
eObject
- selected metadata element ornull
if cannot get- Returns:
- metadata object feature path or
null
if there isn't passed one
-
-