Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to show my own deletion redo/undo label?
How to show my own deletion redo/undo label? [message #169482] Wed, 23 February 2005 19:58 Go to next message
Eclipse UserFriend
Originally posted by: kevinlouisnospam.hotmail.com

The DeleteAction#createDeleteCommand goes through the objects and add the
command to the CompoundCommand. It uses the CompoundCommand even if there
is only one Object selected. That CompoundCommand uses the
GEFMessage.DeleteAction_ActionDeleteCommandName ("Delete") as the label.

My command has the "Delete my shape" label set. But the CompoundCommand
does not take it and my label cannot be shown. The solution I think of is
creating my own DeleteAction and override the createDeleteCommand. In that
case, I can show my custom label even for multiple selection/deletion.

Is there any other way to show my custom label?
Re: How to show my own deletion redo/undo label? [message #169874 is a reply to message #169482] Sun, 27 February 2005 23:04 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Your approach sounds fine. Make sure you register your DeleteAction with
the editor's action registry (thus, overriding the default one) in the
createActions() method.

"Kevin" <kevinlouisnospam@hotmail.com> wrote in message
news:cvin8n$jod$1@www.eclipse.org...
> The DeleteAction#createDeleteCommand goes through the objects and add the
> command to the CompoundCommand. It uses the CompoundCommand even if there
> is only one Object selected. That CompoundCommand uses the
> GEFMessage.DeleteAction_ActionDeleteCommandName ("Delete") as the label.
>
> My command has the "Delete my shape" label set. But the CompoundCommand
> does not take it and my label cannot be shown. The solution I think of is
> creating my own DeleteAction and override the createDeleteCommand. In
that
> case, I can show my custom label even for multiple selection/deletion.
>
> Is there any other way to show my custom label?
>
>
Previous Topic:FigureCanvas exemple request
Next Topic:Can is use GEF in a Swing based application?
Goto Forum:
  


Current Time: Sat Jul 13 18:38:38 GMT 2024

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

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

Back to the top