Class AddDataRole<T extends org.palladiosimulator.pcm.repository.Role>

  • All Implemented Interfaces:
    org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    Direct Known Subclasses:
    AddDataSinkRole, AddDataSourceRole

    public abstract class AddDataRole<T extends org.palladiosimulator.pcm.repository.Role>
    extends Object
    implements org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    • Constructor Detail

      • AddDataRole

        public AddDataRole​(String namePostExtension)
    • Method Detail

      • setInterface

        protected abstract void setInterface​(T role,
                                             DataInterface dInterface)
      • getRelevantRoles

        protected abstract Collection<T> getRelevantRoles​(org.palladiosimulator.pcm.core.entity.InterfaceProvidingRequiringEntity entity)
      • canExecute

        public boolean canExecute​(Collection<? extends EObject> arg0)
        Specified by:
        canExecute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction
      • execute

        public void execute​(Collection<? extends EObject> selection,
                            Map<String,​Object> parameters)
        Specified by:
        execute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction