Interface IDtAction

    • Method Summary

      All Methods Instance Methods Abstract 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 given model, model feature and selection.
      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 given model, model feature and selection.
    • Method Detail

      • getIcon

        org.eclipse.swt.graphics.Image getIcon()
        Returns:
        action icon image.
      • getToolTip

        String getToolTip()
        Returns:
        action tool tip text.
      • isEnabledFor

        boolean isEnabledFor​(org.eclipse.emf.ecore.EObject model,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             ISelection selection)
        Checks whether the action is enabled for a given model, model feature and selection.
        Parameters:
        model - model to check.
        feature - feature to check.
        selection - selection to check.
        Returns:
        true if action is enabled, false otherwise.
      • executeWith

        void executeWith​(org.eclipse.emf.ecore.EObject model,
                         org.eclipse.emf.ecore.EStructuralFeature feature,
                         ISelection selection)
        Executes the action for a given model, model feature and selection.
        Parameters:
        model - model to execute with.
        feature - feature to execute with.
        selection - selection to execute with.