[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Proggrammaticaly add an element for the "root" model element (access the root element problem)
|
- From: Ben Renwart <renwart@xxxxxxxxxxx>
- Date: Wed, 02 May 2007 16:00:48 +0200
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Hi everybody,
I'm new with GMF and I'm facing lots of trouble these times :
I'd like programatically modify my "root" model element. I've already
post this request but I don't find how to proceed really... I'm using
the XXXFactory singleton to create a new instance of the model element I
want to add to my model. The problem is that I don't know the right way
to access the element where to add the freshly created one. Please note
that I don't want to display on the editor the new element : It's only
an internal element which is aimed to stay invisible.
Note that the fact of creating a new element appears in the "Impl" model
classes located in the package "project_name".impl
Could you provide me a piece of code that show me the way to do that ?
Regards,
benren.