Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Remove action from ToolBarManager
Remove action from ToolBarManager [message #585737] Tue, 25 November 2008 02:39
Eclipse UserFriend
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
Previous Topic:How to create singleton from extention
Next Topic:Remove action from ToolBarManager
Goto Forum:
  


Current Time: Sat Jul 05 04:51:58 EDT 2025

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

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

Back to the top