Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Convenient way to interrupt element creation after dialog cancellation
Convenient way to interrupt element creation after dialog cancellation [message #225031] Wed, 08 April 2009 14:56
Eclipse UserFriend
Hi there!

I have a dialog shown upon the creation of some of my diagram elements.
The Command is derived from CreateElementCommand and the dialog is shown
in doDefaultElementCreation. The problem is: how can I avoid element
creation? Currently I throw an execution exception, that is ugly! A
CommandResult.newCancelledCommandResult won't work, although in a
different editor (with almost the same code) it worked. Does anyone know
what the problem here is and how to solve it?

Thanks in advance
Regards, Andreas
Previous Topic:how to get list of editparts
Next Topic:How to "setDirty" in the CommonNavigator
Goto Forum:
  


Current Time: Tue Jul 22 02:39:43 EDT 2025

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

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

Back to the top