Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF Action to confirm deletion
GEF Action to confirm deletion [message #766886] Fri, 16 December 2011 10:45 Go to previous message
Alexandre Torres is currently offline Alexandre Torres
Messages: 132
Registered: July 2009
Senior Member
Hi,
I need to add code to confirm the delete action, before executing the delete command.
I implemented a class that extends ActionBarContributor, and contributed with retarget actions as follows:

protected void buildActions() {
addRetargetAction(new DeleteRetargetAction());
addRetargetAction(new UndoRetargetAction());
addRetargetAction(new RedoRetargetAction());
}
I tryed to extend DeleteRetargetAction and override the run method, but it does not work, becouse retarget actions delegate to registered delete actions. And now I'm absolutly lost. I just cannot guess who tells what action is executed, or when.
So, what is the correct way to contribute with:

1.A Customized delete action
and
2.My own actions (a WhateverAction will need a retarget action?).

Thanks

 
Read Message
Read Message
Read Message
Previous Topic:Disabling animation in gef ui palette ??
Next Topic:GEF Help
Goto Forum:
  


Current Time: Sat May 25 09:37:19 EDT 2013

Powered by FUDForum. Page generated in 0.01673 seconds