Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Get Java Code Generator to work
Get Java Code Generator to work [message #1793291] Fri, 03 August 2018 07:48 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 26
Registered: January 2016
Junior Member
Hi there,

I'm a Papyrus beginner and want to test to generate Java Code from an UML State Machine. However, I don't get it to work. Not even for class diagrams.

I tried:

1. Install Eclipse Photon and add Papyrus through Photon Update site
2. Install Java Code generator as documented here https://wiki.eclipse.org/Java_Code_Generation
3. Check that Java Code generation preferences are available in the Eclipse preferences.
3. Create initial Class Diagram with one class
4. Open Context menu as described in the Wiki
→ The context menu does not show the "Designer" entry and no sub-menus for code-generation

Other approach:

1. Install the Papyrus 4.0.0 RCP
→ Code generator seems not to be available in the vanilla Papyrus RCP
2. Install Java Code generator as described in the Wiki
→ Still, the context menu does not show the "Designer" entry and no sub-menus for code-generation

How do I get it to work? Will eventually State Machines generate Code also? Or are only Class Diagrams supported?

Cheers,
Hauke
Re: Get Java Code Generator to work [message #1793347 is a reply to message #1793291] Mon, 06 August 2018 06:24 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 456
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Dear Hauke,

we started to create a new release (1.1.0) of SW designer recently which includes a dedicated build for photon. While the specific update site for photon should work (see below), the composite update site containing multiple builds lead to bug bug537700 that caused a mixup of plugin versions.

You might try re-installing with the specific photon update-site http://download.eclipse.org/modeling/mdt/papyrus/components/designer/photon. As we will remove it soon (before re-creating a working release), you can also try the nightly update-site of the photon build /org.eclipse.papyrus.designer.p2/target/repository/]https://hudson.eclipse.org/papyrus/job/papyrus-designer-photon/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/. Remove all Papyrus related update-sites before re-installing.

Designer supports state-machine code generation for C++, but currently not for Java.
Re: Get Java Code Generator to work [message #1793357 is a reply to message #1793347] Mon, 06 August 2018 13:12 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Excellent news about the C++ state machine code generation, Ansgar.
Will this be a full implementation or are parallel state machines still excluded? Is there a list of supported features somewhere?
I'm also interested to hear which versions of C++ are supported.

Thanks,
Steve
Re: Get Java Code Generator to work [message #1793393 is a reply to message #1793357] Tue, 07 August 2018 12:13 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 456
Registered: March 2011
Location: Paris Saclay, France
Senior Member
State-machine support should be pretty complete (including parallel regions). That does not exclude that there are eventually bugs, but we're done quite a lot of tests from the PSSM (precise semantics of state-machines) test suite.

There is currently no specific support for more recent variants of C++, notably the native threading.

Ansgar
Previous Topic:Problems migrating from oxygen to photon
Next Topic:Papyrus 4.0 sequence diagram: CSS to hide datatype from messages?
Goto Forum:
  


Current Time: Fri Mar 29 09:06:18 GMT 2024

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

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

Back to the top