Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Create a sirius diagram programmatically(Create a sirius diagram programmatically)
Create a sirius diagram programmatically [message #1578515] Thu, 22 January 2015 12:50 Go to next message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
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
Re: Create a sirius diagram programmatically [message #1580472 is a reply to message #1578515] Fri, 23 January 2015 14:12 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

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 Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Create a sirius diagram programmatically [message #1585945 is a reply to message #1580472] Mon, 26 January 2015 15:29 Go to previous message
Antonio Garmendia is currently offline Antonio GarmendiaFriend
Messages: 93
Registered: May 2014
Member
Hello Steve,

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
Previous Topic:Immediate execution Tool
Next Topic:Different properties view?
Goto Forum:
  


Current Time: Thu Mar 28 18:14:30 GMT 2024

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

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

Back to the top