Skip to main content



      Home
Home » Eclipse Projects » GEF » CreationTool undo
CreationTool undo [message #244514] Wed, 23 July 2008 08:58 Go to next message
Eclipse UserFriend
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 12:15 Go to previous messageGo to next message
Eclipse UserFriend
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 04:38 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 12:50:17 EDT 2025

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

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

Back to the top