Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Loading a GMF diagram resource from Hibernate
Loading a GMF diagram resource from Hibernate [message #615620] Fri, 07 March 2008 10:41
Manfred Hahn is currently offline Manfred HahnFriend
Messages: 64
Registered: July 2009

I have a problem loading a GMF diagram I saved in a Hibernate database.

In the editor and in the property view the diagram is shown, but when I
try to change a property,say, a name of an object, the name in the diagram
and in the property view is NOT changed. In the property view, after
leaving the input cell, the old value of the property is shown.
But the value I changed has been written into the model object! So the
notification to the model object did happen, but not the notification back
to the diagram editor.

In debug I see that all my own model objects do not have the
TransactionChangeRecorder listening to them. Since this is the main
difference to the objects I add to a newly created diagram or to the GMF
diagram objects in the loaded resource I believe this to be cause of the

I load the diagram with an URI containing a query that ensures I am
loading only one diagram out of the database. Since my root model object
is contained in the root diagram object as EObject element, my model
objects should be loaded with the diagram objects - and they are. But only
the diagram objects
got the Transaction Change Recorder listener.

I made some experiments with loadStrategy=StoreResource.ADD_TO_CONTENTS
and I loaded my model objects explicitly before the load of the diagram,
but nothing did help.

(This has nothing to do with the readOnly problem of the hibernate
resource. I have overwritten the DiagramEditingDomain(Factory) to ensure
that all hibernate resources are read-write.)

I would be glad if someone can help me.

With regards

Manfred Hahn
Previous Topic:teneo: same name problem using jpox
Next Topic:Error: XSD: Type reference '#null' is unresolved in XML Schema Import into EMF
Goto Forum:

Current Time: Tue Jun 28 10:40:12 GMT 2022

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

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

Back to the top