Class AddDataRole<T extends org.palladiosimulator.pcm.repository.Role>
- java.lang.Object
-
- org.palladiosimulator.indirections.editor.sirius.javaactions.AddDataRole<T>
-
- 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 Summary
Constructors Constructor Description AddDataRole(String namePostExtension)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(Collection<? extends EObject> arg0)
void
execute(Collection<? extends EObject> selection, Map<String,Object> parameters)
protected abstract Collection<T>
getRelevantRoles(org.palladiosimulator.pcm.core.entity.InterfaceProvidingRequiringEntity entity)
protected abstract void
setInterface(T role, DataInterface dInterface)
-
-
-
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 interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-
execute
public void execute(Collection<? extends EObject> selection, Map<String,Object> parameters)
- Specified by:
execute
in interfaceorg.eclipse.sirius.tools.api.ui.IExternalJavaAction
-
-