Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Apply EMF Compare Diffs in command stack
Apply EMF Compare Diffs in command stack [message #485967] Tue, 15 September 2009 17:52 Go to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
I'm using EMF Compare to compare a local instance of a model taken
directly from a live editor against an instance pulled from an XML file
obtained via web service.

Basically, the user selects "compare against server" from within an open
editor. I take the model from the editor, and clone it. I send the clone
(left) along with the instance obtained from the server (right) and open
a Compare Dialog.

I can successfully use the compare dialog to update the left model (I've
turned off updates to the right). When the user clicks okay, I take the
modified clone and compare it against the instance sitting live in the
editor and then apply the diffs against the live instance.

The problem is that those applied diffs are not done through the command
stack and so they are not undoable. While the changes do appear in the
editor, the editor is not marked dirty.

So... what I think I'm looking for is some way to apply those diffs via
the command stack.

Or, am I just doing this wrong?

I can't seem to Google a solution to this. Any pointer would be appreciated.

Thanks,

Wayne
Re: Apply EMF Compare Diffs in command stack [message #486158 is a reply to message #485967] Wed, 16 September 2009 14:43 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070902040908060805070701
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Wayne,

The main problem here is that we currently have multiple ResourceSet
when comparing (one for the left model, one for the right, ... and one
for the ancestor if it exists). We are trying to find a way to use an
editing domain, but AFAIK it only provides a single editing domain and
we cannot cope with this.

Any idea is welcome.

Laurent Goubet
Obeo

Wayne Beaton a
Previous Topic:Re: Teneo with IBM DB2
Next Topic:Create Child programmatically
Goto Forum:
  


Current Time: Sun Sep 22 02:21:47 GMT 2024

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

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

Back to the top