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

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