Class RemoveATRoleAction

  • All Implemented Interfaces:
    org.eclipse.sirius.tools.api.ui.IExternalJavaAction

    public class RemoveATRoleAction
    extends Object
    implements org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    This class applies an ArchitecturalTemplate to a System. It will ask the user to select from an list of available ArchitecturalTemplates. FIXME: use org.eclipse.sirius.tools.api.ui.IExternalJavaAction2
    • Constructor Detail

      • RemoveATRoleAction

        public RemoveATRoleAction()
    • Method Detail

      • execute

        public void execute​(Collection<? extends EObject> selections,
                            Map<String,​Object> parameters)
        Asks the user to select a Role and attaches it to the given AssemblyContext.
        Specified by:
        execute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction
      • canExecute

        public boolean canExecute​(Collection<? extends EObject> selections)
        Tests whether the object this tool is applied to is a System.
        Specified by:
        canExecute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction