Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Create two behaviours to add an element in an EMF editor
Create two behaviours to add an element in an EMF editor [message #613903] Fri, 04 January 2008 14:43
Eclipse UserFriend
Originally posted by:


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.


Previous Topic:avoid assertWriting check?
Next Topic:[CDO][0.8.0] Problem with OutOfMemory
Goto Forum:

Current Time: Sat Oct 31 13:05:29 GMT 2020

Powered by FUDForum. Page generated in 0.01964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top