Community
Participate
Working Groups
The method: org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction.execute(ExecutionEvent) does two things: 1) invoke the UMLElementChooserDialog to select an existing UML element to create a shortcut to in the context of the current diagram 2) create the shortcut to the selected UML element To facilitate the creation of shortcuts, we need to have an API to invoke (2), e.g.: org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction.createShortcut(TransactionalEditingDomain, IOperationHistory, EObject, EditPart, IEditorPart) I've tested this patch using a modified version of org.eclipse.epsilon.ewl.gmf.GmfTool that provides the above method. It seems to work properly with 3.5M3 & the SVN version of Epsilon.
Created attachment 118696 [details] Patch for separating the work of the wizard as an invocable API method
Since we have 8 diagram plugins, changes like this should be made via custom templates that affect regeneration for the whole U2T scope.
- Proposed patch committed, - custom template to make the same fix available for other diagrams is deferred untilM5
fixed 3 entries (instead of 1) in IP log