use of org.palladiosimulator.pcm.seff.AbstractAction in project Palladio-Editors-Sirius by PalladioSimulator.
the class ReconnectSourceOfControlFlow method execute.
@Override
public void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) {
AbstractAction oldSource = (AbstractAction) parameters.get("source");
AbstractAction newSource = (AbstractAction) parameters.get("target");
DDiagramElement otherEnd = (DDiagramElement) parameters.get("otherEnd");
// Prevent self connecting os edges
if (!otherEnd.getTarget().equals(newSource)) {
newSource.setSuccessor_AbstractAction((AbstractAction) otherEnd.getTarget());
oldSource.setSuccessor_AbstractAction(null);
}
}
Aggregations