|
|
|
|
|
|
|
Re: How to delete / remove a connection ? [message #1439793 is a reply to message #1438815] |
Tue, 07 October 2014 14:15 |
Laurent Le Moux Messages: 184 Registered: September 2011 |
Senior Member |
|
|
Except for the custom features, the feature provider is not queried when I select and right-click on a connection.
As a result, I get a context menu with inactive update, remove and delete actions.
Moreover, if I select nothing in the menu and click on my editor background, the context menu normally disappears and, only then, my feature provider is queried.
And only for the update feature (with a free form connection as picture element in the update context).
In debug mode, DiagramEditorContextMenuProvider.addDefaultMenuGroupRest calls addActionToMenuIfAvailable for update, remove and delete actions.
For the update action, isEnabled() calls UpdateAction.calculateEnabled() which surprisingly returns false because no selected pictogram element is found...
Therefore, the feature provider is not queried...
To sum up, it looks as if the free form connection selection is taken into account only after the context menu has been built, displayed and has disappeared...
And, even then, the remove and delete features are still not called.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05731 seconds