Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:56
Andreas Schoeneck is currently offline Andreas SchoeneckFriend
Messages: 22
Registered: July 2009
Junior Member
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: Thu Apr 25 23:55:46 GMT 2024

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

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

Back to the top