Add/Remove buttons at a views toolbar [message #584655] |
Tue, 11 November 2008 08:29 |
Matthias Kohles Messages: 71 Registered: July 2009 |
Member |
|
|
Hey,
i have created a view in my plugin which contains a tableviewer and a
treeviewer. The user can choose which viewer he prefers.
Now i have added some actions to the toolbar with the IMenuManager
manager.add(action) method. The problem is now that i have different
actions for each viewer, so i want that the actions for the treeviewer
does not display when the tableviewer is active.
So i tried to remove these actions by manager.remove(action.getID()). But
it didn't work. It happened nothing, no error, no exception. So i debugged
it and he executes this commands but with no effect.
Is there another way to remove these actions?
regards
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.03353 seconds