Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Non-EMF Diagram Saving (only view information)
Non-EMF Diagram Saving (only view information) [message #991263] Tue, 18 December 2012 08:33 Go to next message
Tim E. is currently offline Tim E.Friend
Messages: 56
Registered: November 2012
Member
Hi again,

sorry for bothering you guys with so many questions, but it's apparently really hard to accomplish things when you aren't using a EMF-model, at least for me.

I'm trying to save only the view information.
The entire process is:

Load:
-- load model (use my own loading mechanism)
-- load view information (use Graphiti)
if there is none, create one.
-- hook these things together

Save:
-- save model (use my own loading mechanism)
-- save view information (use Graphiti)

I found different threads dealing with separating model and view information, but everything is based on EMF and I don't really see a solution for my problem.

Should I use the Independence Solver to save this information by just saving the underlying map?
Or just write my own saving mechanism in order to save what I need?

Help is highly appreciated, I'm a bit lost at the moment Sad
Open for any pointers, best practices or suggestions Smile

[Updated on: Tue, 18 December 2012 08:36]

Report message to a moderator

Re: Non-EMF Diagram Saving (only view information) [message #991302 is a reply to message #991263] Tue, 18 December 2012 12:29 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Tim,

it seems there should be an example dealing with non-EMF domain models...

In general you should simply let the diagram editor persist and load the EMF
parts (in the non-EMF case only the diagram itself). Within this model you
can have properties that allow your independence solver to identify the
domain objects that belong to the shapes on the diagram. Therefore there
should be no need to persist the mapping information in the independence
solver. Your save logic should in addition only care about persisting your
non-EMF domain model.

Michael
Re: Non-EMF Diagram Saving (only view information) [message #991861 is a reply to message #991302] Thu, 20 December 2012 11:22 Go to previous message
Tim E. is currently offline Tim E.Friend
Messages: 56
Registered: November 2012
Member
Thanks for the help, but unfortunately we decided yesterday not to use Graphiti and use GEF instead.

Thanks anyway,
Tim
Previous Topic:Inherit from PolygonImpl
Next Topic:Non-Emf Diagram Loading
Goto Forum:
  


Current Time: Fri Apr 26 06:34:35 GMT 2024

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

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

Back to the top