Skip to main content



      Home
Home » Eclipse Projects » GEF » non-undoable command
non-undoable command [message #96206] Tue, 30 September 2003 10:43 Go to next message
Eclipse UserFriend
Originally posted by: gg.decisionsoft.co.uk

Is it possible to create a command that does not get put on the undo stack?

I have set up a copy command, to copy data to the clipboard, but it appears on the undo menu when complete.

--
Geoff
Re: non-undoable command [message #96268 is a reply to message #96206] Tue, 30 September 2003 11:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: delee.ATusDOT.ibm.com

> Is it possible to create a command that does not get put on the undo
stack?
>
> I have set up a copy command, to copy data to the clipboard, but it
appears on the undo menu when complete.

Did you try to override canUndo to return false ?
Re: non-undoable command [message #96311 is a reply to message #96206] Tue, 30 September 2003 13:34 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

How about just calling execute() directly, instead of
commandStack.execute(copyCommand)?
"Geoff Gibbs" <gg@decisionsoft.co.uk> wrote in message
news:blc4ma$gq6$1@eclipse.org...
> Is it possible to create a command that does not get put on the undo
stack?
>
> I have set up a copy command, to copy data to the clipboard, but it
appears on the undo menu when complete.
>
> --
> Geoff
>
Previous Topic:draw re-sizable table using GEF
Next Topic:connection disappearing after going to a different window
Goto Forum:
  


Current Time: Thu Jul 24 12:37:03 EDT 2025

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

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

Back to the top