Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Programmatically create nodes and links
Programmatically create nodes and links [message #152334] Thu, 27 September 2007 05:43 Go to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Hi all :)

I want to create a Node in my editor based on some input. I tried first
in EMF editor, with this code:

LibraryFactory factory = new LibraryFactory.eINSTANCE

Book book = factory.createBook()

...but this don't seem to work. In GMF, the only clue I found was the
XYZEditpart.createNodeFigure() method, but I haven't figured out a way
to call that properly.

Any ideas?


Regards

Tomas
Re: Programmatically create nodes and links [message #152455 is a reply to message #152334] Fri, 28 September 2007 05:45 Go to previous message
Eclipse UserFriend
Hi.

Search for CreateElement commands and requests.
They are often discussed in drag'n'drop issues in this mailing-list.

Bye,

Vincent.



Tomas Zijdemans wrote:
> Hi all :)
>
> I want to create a Node in my editor based on some input. I tried
> first in EMF editor, with this code:
>
> LibraryFactory factory = new LibraryFactory.eINSTANCE
>
> Book book = factory.createBook()
>
> ...but this don't seem to work. In GMF, the only clue I found was the
> XYZEditpart.createNodeFigure() method, but I haven't figured out a way
> to call that properly.
>
> Any ideas?
>
>
> Regards
>
> Tomas
Previous Topic:Figures
Next Topic:How do I forbid deletion of elements?
Goto Forum:
  


Current Time: Tue May 13 20:54:09 EDT 2025

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

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

Back to the top