Possible bug in daily RCP [message #1858675] |
Sat, 15 April 2023 06:43  |
Eclipse User |
|
|
|
Hi, i think i found a possible bug in RCP Papyrus nightly download.
The bug i think, is when you create a new project papyrus, when you create the project in the wizard, you can select or add a profile. I decide to include the java code profile.
Then when the project is created, i add a class diagram , and begin to work with it, When i want to generate the code, i cant because the Java profile isnt added or loaded to the current project ( but in theory should be loaded as i did it in the project creation wizard).
Ive tried many nightly builds of these days.
Thanks
|
|
|
|
Re: Possible bug in daily RCP [message #1858758 is a reply to message #1858745] |
Wed, 19 April 2023 15:42   |
Eclipse User |
|
|
|
Yes, the link you told me: https://ci.eclipse.org/papyrus/job/papyrus-designer-2023-03/
As i told me i try to be precise, but my english is not my mother language, so i do my best to be understood.
First, yes, i create a new Papyrus project. And in the wizard of papyurs project i add the Java Profile for generating the code of the UML class diagram in Java.
Then i work creating my class diagram.
When i go to the model explorer, to generate the code, i right click in the model explorer and I CANT find Designer -> Generate code menu.
So when i have to right click and import registered profile -> Java profile Code, and then i CAN find the menu Designer -> Generate code in the right click menu
Hope you can reproduce, as i did and some of my students also did.
|
|
|
Re: Possible bug in daily RCP [message #1858770 is a reply to message #1858758] |
Thu, 20 April 2023 08:21  |
Eclipse User |
|
|
|
Eduardo, the "Generate code" menu appears (or not) depending on the selected element in the model explorer. Did you select the model (root element) itself? There are two options:
1. the Java profile is still applied, the problem was just you did not select the right context element. It is quite possible that new root elements from referenced models appear due to lazy loading (in italics) and you accidentally selected one of these.
2. the Java profile is indeed no longer applied (which I couldn't reproduce). If that is the case, please check
- Is the Java profile applied immediately after creating the model via the wizard?
- If yes, try to reproduce the actions you did (one after another) after creating the class diagram, check each time whether the profile is still applied (select root element, profile tab in property view)
[Updated on: Thu, 20 April 2023 08:48] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.12207 seconds