Package com._1c.g5.v8.dt.ui.aef.actions
Class DtWizardAction
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.aef.actions.DtWizardAction
-
-
Constructor Summary
Constructors Constructor Description DtWizardAction(String wizardId, IModelEditingSupport modelEditingSupport)
Instantiates a new DT wizard action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeWith(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)
Executes the action for a givenmodel
, modelfeature
andselection
.org.eclipse.swt.graphics.Image
getIcon()
String
getToolTip()
boolean
isEnabledFor(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)
Checks whether the action is enabled for a givenmodel
, modelfeature
andselection
.
-
-
-
Constructor Detail
-
DtWizardAction
public DtWizardAction(String wizardId, IModelEditingSupport modelEditingSupport)
Instantiates a new DT wizard action.- Parameters:
wizardId
- the wizard id.modelEditingSupport
- the model editiong suport, cannot benull
.
-
-
Method Detail
-
getIcon
public org.eclipse.swt.graphics.Image getIcon()
-
getToolTip
public String getToolTip()
- Specified by:
getToolTip
in interfaceIDtAction
- Returns:
- action tool tip text.
-
isEnabledFor
public boolean isEnabledFor(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)
Description copied from interface:IDtAction
Checks whether the action is enabled for a givenmodel
, modelfeature
andselection
.- Specified by:
isEnabledFor
in interfaceIDtAction
- Parameters:
model
- model to check.feature
- feature to check.selection
- selection to check.- Returns:
true
if action is enabled,false
otherwise.
-
executeWith
public void executeWith(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection)
Description copied from interface:IDtAction
Executes the action for a givenmodel
, modelfeature
andselection
.- Specified by:
executeWith
in interfaceIDtAction
- Parameters:
model
- model to execute with.feature
- feature to execute with.selection
- selection to execute with.
-
-