|Create two behaviours to add an element in an EMF editor [message #613903]
||Fri, 04 January 2008 14:43
Originally posted by: marion.di-giacomo.cea.fr|
I have a problem with the creation of my elements in my EMF editor.
When I create an element, I would like to create two children.
So I modified the 'create' method in the factory class and called the
'create' methods of the two children.
But when I open a file which has already an element with its two children,
there are more than two created elements (the loaded elements and the
elements created in the factory class).
I would like to know how I can modify the behaviour of my editor in order
to have the two loaded elements when I open the editor, and two
default children when I create a new element. Maybe should I modify the
action of the menu bar ? I find an easy way to do it.
Powered by FUDForum
. Page generated in 0.02232 seconds