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 03:33 Go to next message
Tim E. is currently offline Tim E.
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 03: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 07:29 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1587
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 06:22 Go to previous message
Tim E. is currently offline Tim E.
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: Thu Aug 28 01:18:40 EDT 2014

Powered by FUDForum. Page generated in 0.32801 seconds