Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCreate a sirius diagram programmatically
https://www.eclipse.org/forums/index.php/mv/msg/958093/1578515/#msg_1578515
I'm trying to create a modeling environment and I want to use Sirius as graphical editor. I have a CTabFolder and in each item(CTabItem) I want a different kind of visualization. I have been searching and found https://www.eclipse.org/forums/index.php/t/633830/ so I think that DialectUIManager is the class that creates the diagram representation, but I still don't know how add this diagram representation to a parent Composite. Is there any way to do this?
Thanks for any help.
Cheers,
Anthony]]>Antonio Garmendia2015-01-22T12:50:51-00:00Re: Create a sirius diagram programmatically
https://www.eclipse.org/forums/index.php/mv/msg/958093/1580472/#msg_1580472
I think that you should take a look in the code of
DiagramDialectUIServices.openEditor to see how is created a DDiagramEditor.
Out of curiosity, you want to display several representations in a
containing CTabFolder, what is represented by this containing
CTabFolder? A Sirius session?
Regards,
Steve
Le 22/01/2015 13:50, Anthony Garmendia a écrit :
> Hi,
>
> I'm trying to create a modeling environment and I want to use Sirius as
> graphical editor. I have a CTabFolder and in each item(CTabItem) I want
> a different kind of visualization. I have been searching and found
> https://www.eclipse.org/forums/index.php/t/633830/ so I think that
> DialectUIManager is the class that creates the diagram representation,
> but I still don't know how add this diagram representation to a parent
> Composite. Is there any way to do this?
>
> Thanks for any help.
>
> Cheers,
> Anthony
--
Steve Monnier - Obeo
Need professional services for Sirius? http://www.obeodesigner.com/sirius]]>Steve Monnier2015-01-23T14:12:30-00:00Re: Create a sirius diagram programmatically
https://www.eclipse.org/forums/index.php/mv/msg/958093/1585945/#msg_1585945
First of all, thanks for the reply. I would like to open a Sirius editor in a CTabItem, add the diagram representation in a parent Composite. I understand that I have to create s Sirius session and create the editor.
For that I follow the steps from Alex Lagarde in https://www.eclipse.org/forums/index.php/t/633830/
The thing is that I cannot find a method in which I can create the editor inside CTabItem. I would expect a method that has as a parameter, for example: (Composite parent) or maybe I have to do it in other way.
I searched the class, but I'm not sure what would I have to do?
Thanks.
Regards,
Antonio
]]>Antonio Garmendia2015-01-26T15:29:27-00:00