|
Re: Sirius with JDT [message #1734705 is a reply to message #1729587] |
Fri, 10 June 2016 08:43  |
Eclipse User |
|
|
|
Hi Nelson,
Le 15/04/2016 à 18:29, Nelson Pestana a écrit :
> I want to create a diagram editor to represent the java code structure
> from a project with information coming from JDT. How can I add elements
> to the model without user interaction (programmatically)?
You will have to create your own EMF model to map the Java code structure.
You can retrieve or create a Sirius session using the SessionManager (if
you already have a Modeling Project, you will need the URI of the .aird
file).
Once you have your opened session, you can call
session.getTransactionalEditingDomain().getCommandStack() and execute
EMF commands to populate your model.
You can also look at the DialectManager/DialectUIManager APIs to
programmatically create and open representations.
Regards
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03640 seconds