java.lang.Object
org.palladiosimulator.editors.sirius.custom.externaljavaactions.AddATAction
All Implemented Interfaces:
org.eclipse.sirius.tools.api.ui.IExternalJavaAction

public class AddATAction extends Object implements org.eclipse.sirius.tools.api.ui.IExternalJavaAction
A Sirius action that is used to add an ArchitecturalTemplate Role to the System it is applied to. Executing the action will create an dialog asking the user to select an AT. FIXME: use org.eclipse.sirius.tools.api.ui.IExternalJavaAction2
  • Constructor Details

    • AddATAction

      public AddATAction()
  • Method Details

    • execute

      public void execute(Collection<? extends EObject> selections, Map<String,Object> parameters)
      Creates an ArchitecturalTemplateSelectEObjectDialog that queries the user for an AT and applies the corresponding Stereotype to the selected System.
      Specified by:
      execute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    • canExecute

      public boolean canExecute(Collection<? extends EObject> selections)
      Checks whether there is only one selection and if its a System.
      Specified by:
      canExecute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction