Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Automatic creation diagram
Automatic creation diagram [message #1804532] Thu, 28 March 2019 12:21 Go to next message
Cristian Gómez is currently offline Cristian GómezFriend
Messages: 18
Registered: April 2018
Junior Member

Good afternoon,

I would like to ask if it is possible to create a diagram automatically together with it's point of view without having to previously select the domain model and the viewpoint? If this is not possible, can this task be automated in any way?

Thank you very much for your attention,

A greeting.
Re: Automatic creation diagram [message #1804536 is a reply to message #1804532] Thu, 28 March 2019 13:23 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 458
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Cristian,

This possible in different way:

- from a tool, you could trigger the creation of a diagram while you create some elements
- you could provide your own project creation wizard which will activate one or several viewpoint and create your domain model.
- ..

You might find samples of this in ULM Designer [1][2] or EcoreTools [3][4]

Some entry points :
- org.eclipse.sirius.ui.business.api.viewpoint.ViewpointSelection
- org.eclipse.sirius.business.api.dialect.command.CreateRepresentationCommand

We would need more details of what you want to achieve to give additional entry points



Regards,

[1] Create project section of http://www.umldesigner.org/ref-doc/define-the-system.html
[2] https://github.com/ObeoNetwork/UML-Designer/blob/master/plugins/org.obeonetwork.dsl.uml2.design/src/org/obeonetwork/dsl/uml2/design/internal/wizards/newproject/UMLProjectWizard.java
[3] https://www.eclipse.org/ecoretools/doc/index.html
[4] https://github.com/eclipse/ecoretools/tree/master/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/wizard


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Previous Topic:Show only parent nodes.
Next Topic:Tree Representation: delete sub-element reference
Goto Forum:
  


Current Time: Fri Aug 23 21:56:43 GMT 2019

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

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

Back to the top