Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating additional elements in CreateCommand
Creating additional elements in CreateCommand [message #510463] Wed, 27 January 2010 15:18 Go to next message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi all.

I am experiencing problems when creating additional elements in
doExecuteWithResult of XYZCreateCommand (inheriting from
EditElementCommand).

The additionally created elements are not displayed in the diagram, ie
notation is not updated. (as it should be?) What might be the cause of
this and how can this problem be solved?
The last three lines of doExecuteWithResult are:

doConfigure(newElement, monitor, info);
((CreateElementRequest) getRequest()).setNewElement(newElement);
return CommandResult.newOKCommandResult(newElement);

None of these statements references any of the additional elements (and
I added no appropriate statements). Did I get the mentioned newsgroup
thread wrong? / Is this the error?

Any help is greatly appreciated.

Cheers,
Mark
Re: Creating additional elements in CreateCommand (fixed bug) [message #510464 is a reply to message #510463] Wed, 27 January 2010 15:20 Go to previous message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi all.

I am experiencing problems when creating additional elements in
doExecuteWithResult of XYZCreateCommand (inheriting from
EditElementCommand).

The additionally created elements are not displayed in the diagram, ie
notation is not updated. (as it should be?) What might be the cause of
this and how can this problem be solved?
The last three lines of doExecuteWithResult are:

doConfigure(newElement, monitor, info);
((CreateElementRequest) getRequest()).setNewElement(newElement);
return CommandResult.newOKCommandResult(newElement);

None of these statements references any of the additional elements (and
I added no appropriate statements). Is this the error?

Any help is greatly appreciated.

Cheers,
Mark
Previous Topic:form of a class
Next Topic:Transparent Canvas for Editor
Goto Forum:
  


Current Time: Thu Apr 25 04:19:42 GMT 2024

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

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

Back to the top