i was wondering if anyone can give me a tip or an advice on the following issue:
I am trying to create an EMF editor to define certain elements (thats fairly easy) and then to create a GMF editor using the EMF as its source. By that i mean that what each element I define in the EMF, can be dynamically seen in the palette of my GMF and allowed to be drawn.
Anyone has experience with this kind of implementation? I tryied to merge both GMF and EMF in one as adviced in many articles but the problem is that than everytime i add an element to EMF it is automatically added to the GMF diagram, which is not desired.
Thanks for any tips for implementation approach...
Mickael Istria Messages: 781 Registered: July 2009 Location: Grenoble, France
I think you'll have to redefine a palette to make it aware of your
current open model and add items to it dynamically. You could use
listeners for that.
What you'll have to do is to tweak the generated code for the Palette to
use your custom Palette instead of the default one. I suggest you to
report these modifications in custom templates  to avoid later issues.