Package com._1c.g5.v8.dt.ui.aef.actions
Class DtEditAction
- java.lang.Object
- 
- com._1c.g5.v8.dt.ui.aef.actions.DtCommandActionBase
- 
- com._1c.g5.v8.dt.ui.aef.actions.AbstractDtModelEditingSupportAwareAction
- 
- com._1c.g5.v8.dt.ui.aef.actions.DtEditAction
 
 
 
- 
- All Implemented Interfaces:
- IDtAction
 
 public class DtEditAction extends AbstractDtModelEditingSupportAwareAction DT edit action.
- 
- 
Field Summary- 
Fields inherited from class com._1c.g5.v8.dt.ui.aef.actions.DtCommandActionBaseFEATURE_VARIABLE, MODEL_VARIABLE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DtEditAction(IModelEditingSupport modelEditingSupport)Creates a new edit action.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCommandId()Returns the command id to execute.org.eclipse.swt.graphics.ImagegetIcon()StringgetToolTip()booleanisEnabledFor(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)Checks whether the action is enabled for a givenmodel, modelfeatureandselection.- 
Methods inherited from class com._1c.g5.v8.dt.ui.aef.actions.AbstractDtModelEditingSupportAwareActiongetModelEditingSupport
 - 
Methods inherited from class com._1c.g5.v8.dt.ui.aef.actions.DtCommandActionBaseexecute, executeWith, preExecute, setContextIds
 
- 
 
- 
- 
- 
Constructor Detail- 
DtEditActionpublic DtEditAction(IModelEditingSupport modelEditingSupport) Creates a new edit action.- Parameters:
- modelEditingSupport- actual- IModelEditingSupport, cannot be- null
 
 
- 
 - 
Method Detail- 
getIconpublic org.eclipse.swt.graphics.Image getIcon() - Returns:
- action icon image.
 
 - 
getToolTippublic String getToolTip() - Returns:
- action tool tip text.
 
 - 
isEnabledForpublic boolean isEnabledFor(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)Description copied from class:AbstractDtModelEditingSupportAwareActionChecks whether the action is enabled for a givenmodel, modelfeatureandselection..
 Returnstrueif the specifiedselectionincapsulates theEObjectinstance that can be edited.- Specified by:
- isEnabledForin interface- IDtAction
- Overrides:
- isEnabledForin class- AbstractDtModelEditingSupportAwareAction
- Parameters:
- model- model to check.
- feature- feature to check.
- selection- selection to check.
- Returns:
- trueif action is enabled,- falseotherwise.
 
 - 
getCommandIdprotected String getCommandId() Description copied from class:DtCommandActionBaseReturns the command id to execute.- Specified by:
- getCommandIdin class- DtCommandActionBase
- Returns:
- the command id to execute, never null
 
 
- 
 
-