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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(Collection<? extends EObject> selections) Checks whether there is only one selection and if its aSystem
.void
Creates anArchitecturalTemplateSelectEObjectDialog
that queries the user for anAT
and applies the correspondingStereotype
to the selectedSystem
.
-
Constructor Details
-
AddATAction
public AddATAction()
-
-
Method Details
-
execute
Creates anArchitecturalTemplateSelectEObjectDialog
that queries the user for anAT
and applies the correspondingStereotype
to the selectedSystem
.- Specified by:
execute
in interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-
canExecute
Checks whether there is only one selection and if its aSystem
.- Specified by:
canExecute
in interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-