protected abstract FixedConnectionCreateCommand getConnectionCreateCommand(ITextEditor textEditor, int style);
@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
Activity source = getActivity();
ReconnectFixedSourceCommand cmd = new ReconnectFixedSourceCommand(source.getDiagram().getTextEditor());
ConnectionAnchor anchor = getActivityPart().getSourceConnectionAnchor(request);
if (anchor instanceof FixedConnectionAnchor) {
FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
cmd.setSourceAnchor(fixedAnchor);
}
cmd.setTransition((Transition) request.getConnectionEditPart().getModel());
cmd.setSource(source);
return cmd;
}