Package com._1c.g5.v8.dt.ui.aef.actions
Class DtSortAction
- 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.DtSortAction
-
- All Implemented Interfaces:
IDtAction
public class DtSortAction extends AbstractDtModelEditingSupportAwareAction
DT sort action.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.actions.DtCommandActionBase
FEATURE_VARIABLE, MODEL_VARIABLE
-
-
Constructor Summary
Constructors Constructor Description DtSortAction(IModelEditingSupport editingSupport)
Creates a new sort action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCommandId()
Returns the command id to execute.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
.protected void
preExecute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection, org.eclipse.core.expressions.IEvaluationContext context, Map<String,String> parameters)
Subclasses may override this method to specify custom pre-execution logic.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.actions.AbstractDtModelEditingSupportAwareAction
getModelEditingSupport
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.actions.DtCommandActionBase
execute, executeWith, setContextIds
-
-
-
-
Constructor Detail
-
DtSortAction
public DtSortAction(IModelEditingSupport editingSupport)
Creates a new sort action.- Parameters:
editingSupport
- actualIModelEditingSupport
, can't benull
-
-
Method Detail
-
getIcon
public org.eclipse.swt.graphics.Image getIcon()
- Returns:
- action icon image.
-
getToolTip
public String getToolTip()
- 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 class:AbstractDtModelEditingSupportAwareAction
Checks whether the action is enabled for a givenmodel
, modelfeature
andselection
..
Returnstrue
if the specifiedselection
incapsulates theEObject
instance that can be edited.- Specified by:
isEnabledFor
in interfaceIDtAction
- Overrides:
isEnabledFor
in classAbstractDtModelEditingSupportAwareAction
- Parameters:
model
- model to check.feature
- feature to check.selection
- selection to check.- Returns:
true
if action is enabled,false
otherwise.
-
preExecute
protected void preExecute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature, ISelection selection, org.eclipse.core.expressions.IEvaluationContext context, Map<String,String> parameters)
Description copied from class:DtCommandActionBase
Subclasses may override this method to specify custom pre-execution logic.- Overrides:
preExecute
in classDtCommandActionBase
- Parameters:
model
- model to execute with, can benull
feature
- feature to execute with, can be {@code nullselection
- selection to execute with, cannot be {@code nullparameters
- parameters to execute with, cannot be {@code null
-
getCommandId
protected String getCommandId()
Description copied from class:DtCommandActionBase
Returns the command id to execute.- Specified by:
getCommandId
in classDtCommandActionBase
- Returns:
- the command id to execute, never
null
-
-