ApplicationWindow window = (ApplicationWindow)workbenchWindow;  CoolBarManager  coolBarmgr  = (CoolBarManager)window.getCoolBarManager(); CoolItem[] items = coolBarmgr.getControl().getItems();  for (int i = 0; i < items.length; ++i) { IContributionItem contribItem = (IContributionItem) items[i].getData(); if (!"org.tigris.subversion.subclipse.actionSet".equals(contribItem.getId())) continue;  IToolBarContributionItem toolBarContribItem = (IToolBarContributionItem)contribItem;  IToolBarManager toolBarMgr = toolBarContribItem.getToolBarManager(); IContributionItem updateItem = toolBarMgr.find(getMenuId());  if (updateItem == null) { SVNUIPlugin.log(IStatus.ERROR, "updateItem == null", null); break; }  if (getAction().getImageDescriptor() == null) updateItem.setVisible(false); else updateItem.setVisible(true); toolBarMgr.update(true); coolBarmgr.update(true);  break; }
	public void init(IWorkbenchWindow workbenchWindow) {		setIcon();		ApplicationWindow window = (ApplicationWindow)workbenchWindow;				CoolBarManager  coolBarmgr  = (CoolBarManager)window.getCoolBarManager();		CoolItem[] items = coolBarmgr.getControl().getItems();				for (int i = 0; i < items.length; ++i)		{			IContributionItem contribItem = (IContributionItem) items[i].getData();			if (!"org.tigris.subversion.subclipse.actionSet".equals(contribItem.getId()))  //$NON-NLS-1$				continue;			IToolBarContributionItem toolBarContribItem = (IToolBarContributionItem)contribItem;			IToolBarManager toolBarMgr = toolBarContribItem.getToolBarManager();			IContributionItem updateItem = toolBarMgr.find(getMenuId());			if (updateItem == null)			{				SVNUIPlugin.log(IStatus.ERROR, "updateItem == null", null);				break;			}			if (getAction().getImageDescriptor() == null)				updateItem.setVisible(false);			else				updateItem.setVisible(true);			toolBarMgr.update(true);			coolBarmgr.update(true);						break;		}	}