|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
Registered: July 2009
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.
> 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
> 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,
Powered by FUDForum
. Page generated in 0.01423 seconds