Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Ecore Tools] Observe .ecore changes made via ecorediag
[Ecore Tools] Observe .ecore changes made via ecorediag [message #639082] Mon, 15 November 2010 08:59 Go to next message
Dan Pollitt is currently offline Dan PollittFriend
Messages: 55
Registered: August 2010
Member
Posting this to EMF from GMF:

Hi,

I have an Ecore domain model: My.ecore and an Ecore diagram model:
My.ecorediag.

I'd like to hook in to be notified of changes being made to the My.ecore
model when editing is performed using the ecoretools EcoreDiagramEditor.

I have so far tried adding an
org.eclipse.emf.transaction.ResourceSetListener to the
TransactionalEditingDomain of the EcoreDiagramEditor and I am getting
called back with information about the changes to the ecorediag model
which is useful, however I don't believe the changes are "flushed" to
the My.ecore until the EcoreDiagramEditor editor is saved.

The work I'd like to perform is tightly associated with changes being
made to the My.ecore model as opposed to the in-flight diagram.

I'm not sure how to get notified of these changes that are occurring to
the My.ecore model, can anyone point me in the right direction?


Many thanks,
Dan
Re: [Ecore Tools] Observe .ecore changes made via ecorediag [message #639204 is a reply to message #639082] Mon, 15 November 2010 15:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Dan,

Likely you should be listening for workspace deltas that occur when
resources are actually saved to the workspace.


Dan Pollitt wrote:
> Posting this to EMF from GMF:
>
> Hi,
>
> I have an Ecore domain model: My.ecore and an Ecore diagram model:
> My.ecorediag.
>
> I'd like to hook in to be notified of changes being made to the My.ecore
> model when editing is performed using the ecoretools EcoreDiagramEditor.
>
> I have so far tried adding an
> org.eclipse.emf.transaction.ResourceSetListener to the
> TransactionalEditingDomain of the EcoreDiagramEditor and I am getting
> called back with information about the changes to the ecorediag model
> which is useful, however I don't believe the changes are "flushed" to
> the My.ecore until the EcoreDiagramEditor editor is saved.
>
> The work I'd like to perform is tightly associated with changes being
> made to the My.ecore model as opposed to the in-flight diagram.
>
> I'm not sure how to get notified of these changes that are occurring to
> the My.ecore model, can anyone point me in the right direction?
>
>
> Many thanks,
> Dan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Ecore Tools] Observe .ecore changes made via ecorediag [message #640495 is a reply to message #639204] Mon, 22 November 2010 10:32 Go to previous message
Dan Pollitt is currently offline Dan PollittFriend
Messages: 55
Registered: August 2010
Member
Thanks for the steer Ed,

Dan

On 15/11/2010 15:32, Ed Merks wrote:
> Dan,
>
> Likely you should be listening for workspace deltas that occur when
> resources are actually saved to the workspace.
>
> Dan Pollitt wrote:
>> Posting this to EMF from GMF:
>>
>> Hi,
>>
>> I have an Ecore domain model: My.ecore and an Ecore diagram model:
>> My.ecorediag.
>>
>> I'd like to hook in to be notified of changes being made to the My.ecore
>> model when editing is performed using the ecoretools EcoreDiagramEditor.
>>
>> I have so far tried adding an
>> org.eclipse.emf.transaction.ResourceSetListener to the
>> TransactionalEditingDomain of the EcoreDiagramEditor and I am getting
>> called back with information about the changes to the ecorediag model
>> which is useful, however I don't believe the changes are "flushed" to
>> the My.ecore until the EcoreDiagramEditor editor is saved.
>>
>> The work I'd like to perform is tightly associated with changes being
>> made to the My.ecore model as opposed to the in-flight diagram.
>>
>> I'm not sure how to get notified of these changes that are occurring to
>> the My.ecore model, can anyone point me in the right direction?
>>
>>
>> Many thanks,
>> Dan
Previous Topic:looking for an XML <-> EMF automatic bridge
Next Topic:Error in links between components of the same ESuper type
Goto Forum:
  


Current Time: Mon Sep 23 22:27:02 GMT 2024

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

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

Back to the top