|
Re: Common editor for model + model extension [message #687523 is a reply to message #687522] |
Tue, 21 June 2011 09:19 |
Eclipse User |
|
|
|
Originally posted by:
On 21.06.11 10.51, Sebastian Fuchs wrote:
> Hello,
>
> I have an Ecore Model 1 of type
>
> AbstractChild
>
> MyContainer
> - children : AbstractChild
>
>
>
> I have a second Model 2 in a different plugin extending Model 1 declaring
>
> ConcreteChild->AbstractChild
>
>
>
> I have generated a default Editor for Model 1 and Model 2 but did not
> manage to see "add ConcreteChild" in the Context Menu of a
> MyContainer-instance.
>
> How can I easily create one common Editor, even if there is a growing
> number of extending model plugins ?
There's an extension point that is used for this purpose, i.e. let other
plugins contribute child creation actions for additional subclasses.
However, when you generate the base editor, you must enable it by
setting the Child Creation Extenders option (Edit category) of the
EPackage genmodel element to true.
Hallvard
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04267 seconds