Connect to the Resource [message #378356] |
Fri, 01 September 2006 07:36 |
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 #378358 is a reply to message #378357] |
Fri, 01 September 2006 15:08 |
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 |
Ed Merks Messages: 33133 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Connect to the Resource [message #579166 is a reply to message #378357] |
Fri, 01 September 2006 15:08 |
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02733 seconds