[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Programmatically create nodes and links

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