Bug 46934 [RCP] [CoolBar] Toolbar is missing build action
I20031119 The toolbar is missing the build action. See attached screen shot
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildContributionItem.java
private IWorkbenchWindow window = null;
	private IPropertyChangeListener prefListener = new IPropertyChangeListener() {
		public void propertyChange(PropertyChangeEvent event) {
			if (event.getProperty().equals(ResourcesPlugin.PREF_AUTO_BUILDING)) {
				if (getParent() != null) {
					boolean autoBuild = ResourcesPlugin.getPlugin().getPluginPreferences().getDefaultBoolean(ResourcesPlugin.PREF_AUTO_BUILDING);
					setVisible(!autoBuild);
					getParent().markDirty();
					if (window.getShell() != null && !window.getShell().isDisposed()) {
						
						window.getShell().getDisplay().syncExec(new Runnable() {
							public void run() {
								getParent().update(false);
							}
						});
					}
				}
			}
		}
	};