Skip to main content



      Home
Home » Modeling » Papyrus » Possible bug in daily RCP
Possible bug in daily RCP [message #1858675] Sat, 15 April 2023 06:43 Go to next message
Eclipse UserFriend
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 #1858745 is a reply to message #1858675] Wed, 19 April 2023 02:41 Go to previous messageGo to next message
Eclipse UserFriend
You probably took a nightly RCP of Papyrus SW Designer, right? I also guess you're talking about the "New -> Papyrus model" (or "New -> Papyrus project") wizard and not the "New -> Example" one. Please be more precise in future postings.

I cannot reproduce the problem, i.e. the Java profile is applied when I add it the "Papyrus model" wizard. You can check right after model creation if the profile is applied (use the Profile tab of the property view) - even if I don't see any reason why the profile application should get lost during diagram creation or additional steps afterwards. Does the JavaTemplate available via the "New -> Example" wizard work for you?
Re: Possible bug in daily RCP [message #1858758 is a reply to message #1858745] Wed, 19 April 2023 15:42 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

Previous Topic:Installation on Mac halted by OS
Next Topic:Creating Allocation Matrices in Papyrus SysML 1.6
Goto Forum:
  


Current Time: Sun Jul 06 16:06:55 EDT 2025

Powered by FUDForum. Page generated in 0.12207 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top