One CreateFeature for many palette entries [message #903410] |
Thu, 23 August 2012 10:10  |
Eclipse User |
|
|
|
Hi,
how can a CreateFeature detect which PaletteEntry was used to call it?
In my metamodel I have so called "Element"s and "ElementType"s. Each element has an element type. The list of element types is dynamic (depending on included element type libraries).
The graphical representation of an element is always the same. There is only another "type" string in the shape.
My current approach is, that the palette contains a list of all available element types. The user should select the palette entry with the desired element type and create an element of that type.
So, the element's CreateFeature has to set the element's type according to the selected palette entry. How can I achieve this?
Thank you very much for your help!
Best regards,
Stefan
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27313 seconds