Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Connect to the Resource
Connect to the Resource [message #378356] Fri, 01 September 2006 07:36 Go to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi,
I am trying to listen to the changes made to the sematic model behind
the GMF editor. I have noticed that the EMF resources can be listened,
and they can notify of the changes intervening in their elements when
isNotificationTrackerEnabled() is set to true.

Should I try to listen to the resource ? If so, where is the best place
to plug in ?
Maybe GMF provides a plugin extension point to do such things ?

Do you have any implementation of such a behaviour ?

Regards

Antoine Toulme
http://www.intalio.com
Re: Connect to the Resource [message #378357 is a reply to message #378356] Fri, 01 September 2006 13:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Anoine,

This is an EMF (or GMF question) so best to use that (those)
newsgroup(s). The resource will only notify for direct changes to the
getContents of that resource (or it's other direct features). You
probably want to use something like an EContentAdapter, which you can
attached to a resource, resource set, or EObject. It will listen to
every object in the containment tree and will attach and removed itself
as the content tree changes.


Antoine Toulmé wrote:
> Hi,
> I am trying to listen to the changes made to the sematic model behind
> the GMF editor. I have noticed that the EMF resources can be listened,
> and they can notify of the changes intervening in their elements when
> isNotificationTrackerEnabled() is set to true.
>
> Should I try to listen to the resource ? If so, where is the best
> place to plug in ?
> Maybe GMF provides a plugin extension point to do such things ?
>
> Do you have any implementation of such a behaviour ?
>
> Regards
>
> Antoine Toulme
> http://www.intalio.com
Re: Connect to the Resource [message #378358 is a reply to message #378357] Fri, 01 September 2006 15:08 Go to previous message
Eclipse User
Originally posted by: atoulme.intalio.com

Ed Merks wrote:
> Anoine,
>
> This is an EMF (or GMF question) so best to use that (those)
> newsgroup(s). The resource will only notify for direct changes to the
> getContents of that resource (or it's other direct features). You
> probably want to use something like an EContentAdapter, which you can
> attached to a resource, resource set, or EObject. It will listen to
> every object in the containment tree and will attach and removed itself
> as the content tree changes.
>
>
> Antoine Toulmé wrote:
>> Hi,
>> I am trying to listen to the changes made to the sematic model behind
>> the GMF editor. I have noticed that the EMF resources can be listened,
>> and they can notify of the changes intervening in their elements when
>> isNotificationTrackerEnabled() is set to true.
>>
>> Should I try to listen to the resource ? If so, where is the best
>> place to plug in ?
>> Maybe GMF provides a plugin extension point to do such things ?
>>
>> Do you have any implementation of such a behaviour ?
>>
>> Regards
>>
>> Antoine Toulme
>> http://www.intalio.com
ok moving to GMF. Sorry for the inconvenience.
Re: Connect to the Resource [message #579130 is a reply to message #378356] Fri, 01 September 2006 13:54 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Anoine,

This is an EMF (or GMF question) so best to use that (those)
newsgroup(s). The resource will only notify for direct changes to the
getContents of that resource (or it's other direct features). You
probably want to use something like an EContentAdapter, which you can
attached to a resource, resource set, or EObject. It will listen to
every object in the containment tree and will attach and removed itself
as the content tree changes.


Antoine Toulmé wrote:
> Hi,
> I am trying to listen to the changes made to the sematic model behind
> the GMF editor. I have noticed that the EMF resources can be listened,
> and they can notify of the changes intervening in their elements when
> isNotificationTrackerEnabled() is set to true.
>
> Should I try to listen to the resource ? If so, where is the best
> place to plug in ?
> Maybe GMF provides a plugin extension point to do such things ?
>
> Do you have any implementation of such a behaviour ?
>
> Regards
>
> Antoine Toulme
> http://www.intalio.com
Re: Connect to the Resource [message #579166 is a reply to message #378357] Fri, 01 September 2006 15:08 Go to previous message
Eclipse User
Originally posted by: atoulme.intalio.com

Ed Merks wrote:
> Anoine,
>
> This is an EMF (or GMF question) so best to use that (those)
> newsgroup(s). The resource will only notify for direct changes to the
> getContents of that resource (or it's other direct features). You
> probably want to use something like an EContentAdapter, which you can
> attached to a resource, resource set, or EObject. It will listen to
> every object in the containment tree and will attach and removed itself
> as the content tree changes.
>
>
> Antoine Toulmé wrote:
>> Hi,
>> I am trying to listen to the changes made to the sematic model behind
>> the GMF editor. I have noticed that the EMF resources can be listened,
>> and they can notify of the changes intervening in their elements when
>> isNotificationTrackerEnabled() is set to true.
>>
>> Should I try to listen to the resource ? If so, where is the best
>> place to plug in ?
>> Maybe GMF provides a plugin extension point to do such things ?
>>
>> Do you have any implementation of such a behaviour ?
>>
>> Regards
>>
>> Antoine Toulme
>> http://www.intalio.com
ok moving to GMF. Sorry for the inconvenience.
Previous Topic:Connect to the Resource
Next Topic:Ignoring Notifications That Occur During Proxy Resolution
Goto Forum:
  


Current Time: Fri Oct 24 15:42:13 GMT 2014

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

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