this.selectedNode = selectedNode;
}
@Override
protected void doExecute() {
CreateNodeConnectionFeature feature = new CreateNodeConnectionFeature(editor.getFeatureProvider(), aClass);
PictogramElement selectedElement = editor.getFeatureProvider().getPictogramElementForBusinessObject(selectedNode);
PictogramElement[] selectedElements;
if (selectedElement != null) {
selectedElements = new PictogramElement[] {selectedElement};
} else {
Activator.getLogger().debug("==== TODO - could not find PictogramElement for node " + selectedNode + " probably its that the RiderOutlinePage is out of sync with the Diagram model!");
selectedElements = editor.getSelectedPictogramElements();
}
CustomContext context = new CustomContext(selectedElements);
feature.execute(context);
}