Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Remove action from ToolBarManager
Remove action from ToolBarManager [message #34249] Tue, 25 November 2008 07:39 Go to next message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
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:

manager.remove(aci2);


Can anyone tell me what i'm doing wrong here?

regards

Matthias
Re: Remove action from ToolBarManager [message #34283 is a reply to message #34249] Tue, 25 November 2008 07:49 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
oh damn...

now i got the solution...

i simply forgot to call the update method :(
Re: Remove action from ToolBarManager [message #585762 is a reply to message #34249] Tue, 25 November 2008 07:49 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
oh damn...

now i got the solution...

i simply forgot to call the update method :(
Previous Topic:Remove action from ToolBarManager
Next Topic:ClassNotFoundException with classes inside jre/lib/ext
Goto Forum:
  


Current Time: Wed Sep 22 15:42:27 GMT 2021

Powered by FUDForum. Page generated in 0.02155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top