|
Re: Extending the UML2 metamodel and customizing the ItemProvider super class [message #499259 is a reply to message #499257] |
Fri, 20 November 2009 15:19 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Christian,
You can marked it "@generated not", i.e., something other than NOT which
has special significance in a class/interface in that it blocks all
nested merging. Then only the merging of the header is blocked, but
nested merging will still take place.
Cristian wrote:
> Hello,
>
> I have a metamodel that extends the UML2 metamodel and adds a couple
> of new elements to some existing UML2 elements.
> I would like to know if it is possible somehow to customize the
> generation of the ItemProvider class, so that it extends from a custom
> class.
>
> E.g. I have MyClass that extends the Class element.
> MyClassItemProvider would extend ClassItemProvider, but I would like
> it to extend from MyBaseItemProvider.
>
> I know that I could put the "@generated NOT" tag on the provider
> class, but this way the whole class won't be generated any more. I
> know that there is also the @extends tag that I can put in the
> comment, but if I specify something a class with it, it will be
> treated like an interface (appended to the implements ... list).
>
> Would there be a way to achieve this?
>
> Thank you in advance,
>
> Cristi.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04728 seconds