file [Solved] JavaDesigner for SysML

8 years 4 weeks ago #2895 by Deep
Recently I installed the open source JavaDesigner compliant with Modelio 3.1.2.
My intention was to generate java code from a SysML model I had created. However on including the module in my project and clicking the Generate tab under JavaDesigner, no code was generated. I wonder if I am doing something wrong.
can someone please guide me through this?

Please Log in or Create an account to join the conversation.

8 years 4 weeks ago - 5 years 8 months ago #2896 by pan
Hello Deep,

The elements you want to generate must be tagged as Java elements. I guess it is the problem in your case.

You can use a Jython script ( Script UML to Java ) to make this modification recursively.
How to use it? Select the top element containing your Java elements (for example a root package) then execute this script. It will tag the top element and all the children elements.
When this is done you don't need to do it anymore. When you will create an element under the top element it will be automatically tagged as Java Element.

After that you can generate your code.

Hope this helps,
BR
The following user(s) said Thank You: Deep

Please Log in or Create an account to join the conversation.

8 years 4 weeks ago #2897 by Deep
Hi,
Thanks a lot. It worked.

Please Log in or Create an account to join the conversation.

Moderators: tmaaabcde
Time to create page: 0.036 seconds
^ Back to Top