Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Question about C/C++ Project Page
Question about C/C++ Project Page [message #1866009] Fri, 17 May 2024 14:25 Go to next message
Antoine Dubost is currently offline Antoine DubostFriend
Messages: 31
Registered: November 2022
Member
Hello,

For the C++ code generation in the tool I am developing, I call a class that opens a popup to select the project. Until now, this would open the Papyrus selection page (C++ Project Page) to choose the desired toolchain: Cygwin, MinGW, etc.
Now, when I select the project and confirm the selection, the code generation is automatically launched using Cross GCC.

Have there been any recent changes?
What changes need to be made to retrieve the C++ Project Page ?

I'm using the nightly Papyrus Designer target:
"https://ci.eclipse.org/papyrus/job/papyrus-designer-2023-03/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/"

If you have any ideas, I would appreciate them!
Thank you.

Antoine

Moreover, even though I have selected the Cygwin toolchain as the "preferred Toolchains" in the preferences ("Make toolchain(s) preferred" in C/C++ -> New C/C++ Project Wizard), it is not being taken into account.
Re: Question about C/C++ Project Page [message #1866171 is a reply to message #1866009] Wed, 22 May 2024 12:52 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 470
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Dear Antoine,

the creation of C++ projects has changed in the context of separating UI and non-UI plugins (called by Papyrus web in the future). The older implementation requiring the UI is based on the C++ project wizard. It is still available, but has been moved to a new plugin called org.eclipse.papyrus.designer.languages.cpp.cdt.project.ui (the implementation of the existing plugin changed and chooses the first compatible toolchain automatically).
The existing way should still be used by default, if the UI is available, but this is only the case for direct code generation, not if you pass by a transformation chain. Can you please enter a bug? (using the designer gitlab page)

[Updated on: Wed, 22 May 2024 12:53]

Report message to a moderator

Re: Question about C/C++ Project Page [message #1866249 is a reply to message #1866171] Thu, 23 May 2024 13:20 Go to previous messageGo to next message
Antoine Dubost is currently offline Antoine DubostFriend
Messages: 31
Registered: November 2022
Member
Thank you for the answer.

issue created : https://gitlab.eclipse.org/eclipse/papyrus/org.eclipse.papyrus-designer/-/issues/10

Regards,

Antoine
Re: Question about C/C++ Project Page [message #1866717 is a reply to message #1866249] Wed, 05 June 2024 15:13 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 470
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi Antoine,

the nightly build now has a new preference option that controls whether new project creation passes by the wizard or is done automatically. The default option is to use the wizard, as before. Can you please test?

Ansgar
Re: Question about C/C++ Project Page [message #1866747 is a reply to message #1866717] Thu, 06 June 2024 08:53 Go to previous messageGo to next message
Antoine Dubost is currently offline Antoine DubostFriend
Messages: 31
Registered: November 2022
Member
Hi Ansgar,
This works perfectly.
Please note that the default option is not to use the wizard.

Antoine
Re: Question about C/C++ Project Page [message #1866765 is a reply to message #1866747] Thu, 06 June 2024 13:03 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 470
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi Antoine,
thanks for the swift reply and the remark related to the default option. The new plugin.xml that registers the default initializer was not in the binary build (missing in build.properties). I will correct that asap.
Previous Topic:Usage (Create usage link)
Next Topic:FMI based cosimulation
Goto Forum:
  


Current Time: Thu Sep 12 12:32:35 GMT 2024

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

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

Back to the top