Search in sources :

Example 1 with EntryLevelSystemCall

use of org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall in project Palladio-Editors-Sirius by PalladioSimulator.

the class EntryLevelSystemCallDialog method execute.

@Override
public void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) {
    EntryLevelSystemCall element = (EntryLevelSystemCall) parameters.get("instance");
    OperationProvidedRole oldRole = element.getProvidedRole_EntryLevelSystemCall();
    OperationProvidedRole role = getOperationProvidedRole(element);
    if (role != null) {
        element.setProvidedRole_EntryLevelSystemCall(role);
        OperationSignature signature = getOperationSignature(element);
        if (signature != null) {
            element.setOperationSignature__EntryLevelSystemCall(signature);
        } else {
            element.setProvidedRole_EntryLevelSystemCall(oldRole);
        }
    }
}
Also used : EntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall) OperationSignature(org.palladiosimulator.pcm.repository.OperationSignature) OperationProvidedRole(org.palladiosimulator.pcm.repository.OperationProvidedRole)

Aggregations

OperationProvidedRole (org.palladiosimulator.pcm.repository.OperationProvidedRole)1 OperationSignature (org.palladiosimulator.pcm.repository.OperationSignature)1 EntryLevelSystemCall (org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall)1