Class AddATAction
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(Collection<? extends EObject> selections) Checks whether there is only one selection and if its aSystem.voidCreates anArchitecturalTemplateSelectEObjectDialogthat queries the user for anATand applies the correspondingStereotypeto the selectedSystem.
-
Constructor Details
-
AddATAction
public AddATAction()
-
-
Method Details
-
execute
Creates anArchitecturalTemplateSelectEObjectDialogthat queries the user for anATand applies the correspondingStereotypeto the selectedSystem.- Specified by:
executein interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-
canExecute
Checks whether there is only one selection and if its aSystem.- Specified by:
canExecutein interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-