Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » create element
create element [message #225776] Tue, 14 April 2009 12:10 Go to next message
Filip Sebesta is currently offline Filip SebestaFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

I wonder how it is possible to make a new element without "standard
button method" generated by gmf. I want to create an element in my own
menu and I don't know how. I tried to make a new element via
EditorFactory.eINSTANCE.createElement(); but it doesn't work properly. I
think it is because of not adding the element to my Editor element list.

Thanks!

Filip
Re: create element [message #225816 is a reply to message #225776] Tue, 14 April 2009 12:46 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Filip,

You should read this http://wiki.eclipse.org/index.php/GMF_Tips,
The first tip demonstrates how to create new element with GMF API.



Filip Sebesta a écrit :
> Hi,
>
> I wonder how it is possible to make a new element without "standard
> button method" generated by gmf. I want to create an element in my own
> menu and I don't know how. I tried to make a new element via
> EditorFactory.eINSTANCE.createElement(); but it doesn't work properly. I
> think it is because of not adding the element to my Editor element list.
>
> Thanks!
> Filip
>
Re: create element [message #225866 is a reply to message #225776] Tue, 14 April 2009 13:25 Go to previous message
Eclipse UserFriend
Originally posted by: cayla_sha.gmx.net

Filip Sebesta schrieb:
> I think it is because of not adding the element to my Editor element list.

So why don`t you just add it to the list...?
Previous Topic:how can i make a figure inmobile
Next Topic:How to get ModelID for a diagram programatically?
Goto Forum:
  


Current Time: Fri Apr 26 16:04:32 GMT 2024

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

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

Back to the top