|Re: Shared Editing Domain [message #659802 is a reply to message #659759]
||Tue, 15 March 2011 16:16
| Ed Merks
Registered: July 2009
Timothy Marc wrote:
> Hi guys,
> we're working very hastily on a simple FormsUI-Multipage Editor for a
> ecore model presenting some information more convenient than the
> built-in tree editor. I know there is this EMF data binding stuff, but
> due to time constraints, we have to stick with the approach. We
> already created shared editing domains, and they work quite nice.
Shared between editors? You're using the transaction framework?
> But we have problems to recognize that the other editor has saved the
Do they share a command stack too, given that's part of the editing domain.
> I googled a bit for it, but i cannot find the event that is fired,
> when the resource or resource set is saved.
In the generated editor, there's something that listens to the workspace
and updates when there are workspace deltas...
> I guess, it must be somehow related to the resource set. We already
> changed the isDiryt() in our editor to
> ((BasicCommandStack)editingDomain.getCommandStack()).isSaveN eeded();
> In short: How is it possible to tell the other editor, it should
> refresh his isDirty() method? I guess we have to register a listener
The generated editor has a command stack listener that updates the dirty
state each time a command is executed.
> Thanks a lot
Powered by FUDForum
. Page generated in 0.02000 seconds