|
|
|
|
Re: Register adapters [message #724064 is a reply to message #724015] |
Sat, 10 September 2011 15:33 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
Xavier,
An EContentAdapter is maybe appropriate for that. You can add it to the
resource set's eAdapters list and it will listen to every resource and
every object within that resource. There's no extension point for
doing this. You'd have to define one yourself specific to your editor.
On 10/09/2011 3:18 AM, Xavier Seignard wrote:
> Ed,
> Thanks for your answer. Maybe EContentAdapter is not the right solution.
>
> The problem I want to solve is the following :
> - I have a metamodel, metamodel.edit and two editors plugins
> - I want to create a new plugin which will listen changes to any model
> conforming to my metamodel and launch specific actions. So when this
> plugin is loaded, some behavior is added to my metamodel.
>
> So what would be the steps to achieve that (what kind of adapter,
> adapter factory, how to register the adapter, which extension point I
> need to declare)?
>
> Thanks for your future advices,
>
> Best regards,
>
> Xavier
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01966 seconds