Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CreationTool undo
CreationTool undo [message #244514] Wed, 23 July 2008 12:58 Go to next message
Balint Persics is currently offline Balint Persics
Messages: 4
Registered: July 2009
Junior Member
Hi all,

When I want to create a new element in my model, and use a graphical
editor with it, the following happens:
- 1. Select the CreationTool in the Palette
- 2. Move the CreationTool to the editor area to create a new element
- 3. Press the ESC key (Cancel creation).

In this case the model has already changed (the element has been created
and added to the model). I need to undo the model creation. How can I do
that?

Thanks,
Balint PERSICS
Re: CreationTool undo [message #244537 is a reply to message #244514] Thu, 24 July 2008 16:15 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

you mean you didnt clicked the mouse and then also the model is created?

if this is the case then you should better check where you are adding the model.

try to do the add operation in your execute method of your command and not in your edit policy..,
Re: CreationTool undo [message #244588 is a reply to message #244514] Mon, 28 July 2008 08:38 Go to previous message
Eclipse User
Originally posted by: lifesting.gmail.com

Balint Persics wrote:
> Hi all,
>
> When I want to create a new element in my model, and use a graphical
> editor with it, the following happens:
> - 1. Select the CreationTool in the Palette
> - 2. Move the CreationTool to the editor area to create a new element
> - 3. Press the ESC key (Cancel creation).
>
> In this case the model has already changed (the element has been created
> and added to the model). I need to undo the model creation. How can I do
> that?
>
> Thanks,
> Balint PERSICS
>
ESC key is preserved to make PaletteView's default tool(selection tool)
be selected.
Previous Topic:SnapToGrid with odd grid spacing
Next Topic:non-rectangular bound?
Goto Forum:
  


Current Time: Sat Oct 25 12:10:44 GMT 2014

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

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