[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Node creation by code

Johannes Koehler schrieb:

I finally solved it on my own. I use the corresponding creation tool to create a request and then a CreateViewAndOptionallyElementCommand using the parameters of the request:

CreationTool tool = new CreationTool(StructuremodelElementTypes.NodeOutport_2002);

CreateViewAndElementRequest req = (CreateViewAndElementRequest) tool.createCreateRequest();


CreateViewAndOptionallyElementCommand createCmd = new CreateViewAndOptionallyElementCommand( req.getViewAndElementDescriptor().getElementAdapter(),
target,
null,
req.getViewAndElementDescriptor().getPreferencesHint());


Regards,
Johannes