[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: GMF + EMF + commandstack
|
- From: Christophe Bouhier <dzonekl@xxxxxxxxx>
- Date: Thu, 04 Dec 2008 06:29:27 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)
Hi Alex,
Thank you for your response. My problem is solved, it was related
to the method isDirty() still in the multipage editor. So removing
this (and letting each editor part respond), solved the problem.
I did learn a bit on resources, notification and commandstacks ;-)
Cheers / Christophe
Alex Shatalin wrote:
Hello Christophe,
I've checked combined (GMF+EMF on different tabs) TopicMapEditor from
the article and it starts being dirty if I mode any node on a diagram.
Anyway, important place in a code is generated
???DocumentProvider.ResourceSetModificationListener - this class is
responsible for listening for a notifications from EMF
Resources.modified property. You can try to debug this code to see why
it is not working.
In general to make it working you have to have ensure all the resources
loaded by corresponding ResourceSet has "trackingModification" property
set to true (see generated ???DocumentProvider.createEditingDomain()
method). AFAICSee ???Editor.initializeEditingDomain() is not setting
trackingModification = true for any loaded resources, so as an option
you can copy appropriate code from
???DocumentProvider.createEditingDomain() to
???Editor.initializeEditingDomain().
-----------------
Alex Shatalin