Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Shared Editing Domain
Shared Editing Domain [message #659759] Tue, 15 March 2011 14:06 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
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. But we have problems to recognize
that the other editor has saved the model. I googled a bit for it, but i
cannot find the event that is fired, when the resource or resource set is
saved. 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 somewhere?

Thanks a lot
Timothy
Re: Shared Editing Domain [message #659802 is a reply to message #659759] Tue, 15 March 2011 16:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Timothy,

Comments below.

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
> model.
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
> somewhere?
The generated editor has a command stack listener that updates the dirty
state each time a command is executed.
>
> Thanks a lot
> Timothy


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:template proposals (ctrl+space)
Next Topic:[Persistence] Customize Resource Persistence
Goto Forum:
  


Current Time: Thu Apr 25 17:26:36 GMT 2024

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

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

Back to the top