Skip to main content



      Home
Home » Modeling » Papyrus » Create SysML projects and diagrams programmatically
Create SysML projects and diagrams programmatically [message #1610810] Tue, 10 February 2015 20:54 Go to next message
Eclipse UserFriend
Hello,

I am trying to automatically create Papyrus SysML projects and models inside an Eclipse plugin. The idea is to create an empty project and complete it by creating all the sysml object using java (in fact, sysml is a background language). Is there any code example/test that show how to proceed?

Thanks.
Re: Create SysML projects and diagrams programmatically [message #1614953 is a reply to message #1610810] Fri, 13 February 2015 11:00 Go to previous message
Eclipse UserFriend
Hi,

This plugin may help you has a starting point:
org.eclipse.papyrus.integrationtests.editor (from
git/tests/integration/plugins)

It contains tests that:
- create an Eclipse project
- create a Papyrus editor (not suited to be opened). This create a
Papyrus model that can be saved.
- create diagrams inside the editor.

Once you have the editor, you can access all Papyrus models (uml,
notation, ...), modify them, save them . In uml model, you can create
domain objects.
The project allows to access to the Diagram, but there is no examples of
how to create diagram elements. I know there is an extra plugin showing
that (I don't remind its name).
This plugin is used by org.eclipse.papyrus.layers.integrationtests
(from git/extraplugins/layers)

Hope this help,
Cedric

Julien Mising name a écrit :
> Hello,
>
> I am trying to automatically create Papyrus SysML projects and models
> inside an Eclipse plugin. The idea is to create an empty project and
> complete it by creating all the sysml object using java (in fact, sysml
> is a background language). Is there any code example/test that show how
> to proceed?
>
> Thanks.
>
Previous Topic:Execution of state charts
Next Topic:Java code generation for new simple entity with Eclipse RAP interface
Goto Forum:
  


Current Time: Sun Jul 13 07:49:30 EDT 2025

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

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

Back to the top