Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Multiple diagram editor using the same semantic model and the same representation(One DRepresentation instance for multiple editors)
Multiple diagram editor using the same semantic model and the same representation [message #1703664] Tue, 04 August 2015 03:55 Go to next message
Sann Tran is currently offline Sann TranFriend
Messages: 15
Registered: November 2014
Junior Member
Hi Obeo,

At the moment, If I want to open many editors to view representation of a semantic model, I can create many representations and open them in editors. The problem is that if a new representation is create, the file .aird size is increased.

Is there any way to open many editors for 1 representation instance? (the style of node/edge between editors may be different, and the editor titles are also different)

Thanks
---
Sann Tran


Re: Multiple diagram editor using the same semantic model and the same representation [message #1703674 is a reply to message #1703664] Tue, 04 August 2015 07:39 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 701
Registered: July 2009
Senior Member
Le 04/08/2015 05:55, Sann Tran a écrit :
> Hi Obeo,

Hi.

> At the moment, If I want to open many editors to view representation of
> a semantic model, I can create many representations and open them in
> editors. The problem is that if a new representation is create, the file
> .aird size is increased.
> Is there any way to open many editors for 1 representation instance?
> (the style of node/edge between editors may be different, and the editor
> titles are also different)

No, that's not possible. If the the style of node/edge are different,
then they are different diagram instances (which may reference the same
domain model, but are otherwise independent), with the storage overhead
this implies (both in disk and memory).

Note that you can extract some specific diagrams (or representations in
general) into separate (referenced) aird, see
https://www.eclipse.org/sirius/doc/user/general/Modeling%20Project.html#ReprManagement.
This would keep the size of the main aird file constant (or almost, it
would gain a link to the referenced aird).

May I ask why the aird size increase is an issue in your case?

--
Pierre-Charles David - Obeo

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


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Multiple diagram editor using the same semantic model and the same representation [message #1703711 is a reply to message #1703674] Tue, 04 August 2015 11:22 Go to previous message
Sann Tran is currently offline Sann TranFriend
Messages: 15
Registered: November 2014
Junior Member
Hi Pierre-Charles David,

Thank you for your quick reply.

Question:
> May I ask why the aird size increase is an issue in your case?

Answer:
I have a many diagrams (about hundreds nodes per diagram), and most of diagrams have the same semantic model and the same layout with different context, and just have differences in style - color / or decoration / or edge direction.

For example, I have diagram D1, D1 have 2 nodes, n1, and n2.
By double click to n1, I can navigate to diagram D2 (context here is D1.n1->D2)
By double click to n2, I can also navigate to diagram D2 (context here is D1.n2->D2), but in another diagram editor.
There are many diagrams like D1 and D2, many nodes like n1, n2, so I have many contexts, and have many diagram editors. So the .aird file may become too big.

Thanks so much for your information about separating .aird file. I think that it is really helpful in my situation now.

Thanks,
---
Sann Tran
Previous Topic:Hierarchical Viewpoints
Next Topic:Error on My.uml file
Goto Forum:
  


Current Time: Thu Mar 28 22:32:37 GMT 2024

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

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

Back to the top