[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Retarget Actions

Hi,

I intend to retarget the cut/copy/paste/delete actions with my own actions
and implementations. I created my own custom Delete action extending
Retarget action. Then provided an implementation for its isEnabled() method
and finally setGlobalActionHandler (for actionBars for the View Site -
Project Explorer View) with arguments (ActionFactory.DELETE.getId(),
deleteAction) where deleteAction is my custom action. However, this doesn't
tie the Edit > Delete to my action. Also, in the right-click menu where I
have contributed my Delete action through an actionProvider has two delete
actions displayed (its not overriding the default delete). Delete key on
keyboard also triggers the default action.

I tried referring to Micheal's article at
http://scribbledideas.blogspot.com/2006/06/building-common-navigator-_115067357450703178.html
for this and followed most of the guidelines given but still am unable to
retarget the actions as required.

Can someone help me in this or guide me to the appropriate material for
retarget actions? I can post parts from my code if needed.

I had originally posted this on platform.swt group... also I am using 
Eclipse 3.2, so handlers and commands mechanism which is in 3.3 won't be 
available to me, right?

Any help would be highly appreciated.

Thanks,
Rahul