Class DtSortAction

    • 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 given model, model feature and selection..
        Returns true if the specified selection incapsulates the EObject instance that can be edited.
        Specified by:
        isEnabledFor in interface IDtAction
        Overrides:
        isEnabledFor in class AbstractDtModelEditingSupportAwareAction
        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 class DtCommandActionBase
        Parameters:
        model - model to execute with, can be null
        feature - feature to execute with, can be {@code null
        selection - selection to execute with, cannot be {@code null
        parameters - parameters to execute with, cannot be {@code null