Problems wrapping RecordingCommand [message #73164] |
Thu, 02 November 2006 05:32  |
Eclipse User |
|
|
|
Originally posted by: seliva.gmail.com
Hi!
I am trying to create a new object on my diagram programatically, when
another object is double-clicked.
I have tried following the example: "Create New Elements Using
RecordingCommand and CanonicalEditPolicies" at
http://wiki.eclipse.org/index.php/GMF_Tips
I created a proper RecordingCommand and now I would like to return it from
the getOpenCommand function inside the OpenEditPolicy. I tried to wrap it
using: cmd = new ICommandProxy(myRecordingCommand);
but it is not legal. Any suggestions about how to convert RecordingCommand
to Command or any other way of creating objects inside an OpenEditPolicy?
Thanks!
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29832 seconds