Skip to main content



      Home
Home » Modeling » EMF » Shared Editing Domain
Shared Editing Domain [message #659759] Tue, 15 March 2011 10:06 Go to next message
Eclipse UserFriend
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 12:16 Go to previous message
Eclipse UserFriend
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
Previous Topic:template proposals (ctrl+space)
Next Topic:[Persistence] Customize Resource Persistence
Goto Forum:
  


Current Time: Fri Jul 25 00:59:14 EDT 2025

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

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

Back to the top