Remove action from ToolBarManager [message #34249] |
Tue, 25 November 2008 02:39  |
Eclipse User |
|
|
|
Hey there,
i have a little problem with the removal of an action from the toolbar of
my view in a eclipse plugin.
First of all i get the toolbar manager by calling this:
IActionBars bars = getViewSite().getActionBars();
IToolBarManager manager = bars.getToolBarManager();
the i create some actions and adds them to the toolbar (this works fine):
ActionContributionItem aci = new
ActionContributionItem(this.tree_expand);
ActionContributionItem aci2 = new
ActionContributionItem(this.tree_collapse);
manager.add(aci);
manager.add(aci2);
but when i try to remove these actions....nothing happens. There's no
error message or exception thrown.
i tried to remove them with this:
Can anyone tell me what i'm doing wrong here?
regards
Matthias
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.49183 seconds