Open eclipse-uml2-bot opened 1 week ago
By Vishal Sharnagat on Sep 24, 2024 03:52
Created attachment 289494 Disabled menu
Looks like the menu/toolbar (horizontal bar with nodes to select) is disabled. However, the same shown on Pallete are enabled. But, nothing happens when I click it. On debug, it calls the same code to return null command.
Screenshot 2024-09-24 at 1.14.46 PM.png
By Vishal Sharnagat on Sep 24, 2024 03:55
Created attachment 289497 Context Menu
The context menu is enabled. However, only for the nodes it is returning null command. For other menu items like note, text, geometric shapes (circle, oval, triangle, etc.) it is working fine.
Screenshot 2024-09-24 at 1.17.50 PM.png
| --- | --- | | Bugzilla Link | 583572 | | Status | UNCONFIRMED | | Importance | P3 blocker | | Reported | Sep 24, 2024 03:43 EDT | | Modified | Sep 24, 2024 03:57 EDT | | Version | 5.5.2 | | Reporter | Vishal Sharnagat |
Description
The Eclipse platform for RCP application is migrated from 4.6.3 to 4.23 (it's too old version but got the support till next year). With this change, the Eclipse UML2 is also migrated from 3.x to 5.x. Luckily, there are not many code changes introduced as part of this migration. Only createNode() has to be replaced with createOwnedNode() as below:\ \ umlNode = (InitialNode)getActivity().createOwnedNode(name = (name != null)? name : GRAPH_NODE_INITIAL, UMLPackage.eINSTANCE.getInitialNode());
However, with this change/migration, the nodes are not getting created in Activity Diagram Editor with below exception:
Upon debugging, it is learnt that the below line returns null command:
I compared the returned command with older UML2 3.x libraries and found that it was returning command of type ICommandProxy which has executable property. The command object created by new UML2 5.x is not executable and returns null from below class and method:
The code returns non executable object from below lines of code and nodes are not getting created in activity diagram:
May I know if:
Thanks in advance.