| GEF Action to confirm deletion [message #766886] |
Fri, 16 December 2011 10:45  |
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
|
|
|