dynamically generate EMF editor from a metamodel [message #431684] |
Tue, 21 July 2009 10:44  |
Eclipse User |
|
|
|
Hi;
I have an EMF editor generated from a metamodel, is it possible to add
another page to that editor based on another metamodel by writing some
java code (on button press etc). I need this because in the 1st editor the
user makes some decisions and a new metamodel is then generated. So far, i
can manually use the 2nd metamodel and auto-generate the 2nd editor but I
want all this on a button click. Is this possible? If so, any pointers on
where i can find some guidelines.
Any help would be much appreciated.
cheers
--Ali
|
|
|
Re: dynamically generate EMF editor from a metamodel [message #431685 is a reply to message #431684] |
Tue, 21 July 2009 11:06  |
Eclipse User |
|
|
|
Ali,
Comments below.
Ali Gondal wrote:
> Hi;
>
> I have an EMF editor generated from a metamodel, is it possible to add
> another page to that editor based on another metamodel by writing some
> java code (on button press etc).
Yes, you can add pages.
> I need this because in the 1st editor the user makes some decisions
> and a new metamodel is then generated. So far, i can manually use the
> 2nd metamodel and auto-generate the 2nd editor but I want all this on
> a button click. Is this possible? If so, any pointers on where i can
> find some guidelines.
You can look at the existing editor to see how all the pages are added...
>
> Any help would be much appreciated.
I supposed you'd create another resource in the resource set, but by
default the main page shows all the resources in the resource set...
>
> cheers
> --Ali
>
|
|
|
Powered by
FUDForum. Page generated in 0.03958 seconds