Bug 28508 [Dialogs] build-all should not bring up a progress monitor
20021216 it should use the status bas - the dialog is way too distracting on motif, the whole thing flashes a lot too
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java
*/
public GlobalBuildAction(IWorkbenchWindow window, int type) {
	if (window == null) {
		throw new IllegalArgumentException();
	}
	this.workbenchWindow = window;
	setBuildType(type);
}
/**
 * Sets the build type.
 * 
 * @param type the type of build; one of
 *  <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or 
 *  <code>IncrementalProjectBuilder.FULL_BUILD</code>
 */
private void setBuildType(int type) {
	
	switch (type) {
		case IncrementalProjectBuilder.INCREMENTAL_BUILD:
		case IncrementalProjectBuilder.AUTO_BUILD:
			setText(IDEWorkbenchMessages.getString("GlobalBuildAction.text")); 
			setToolTipText(IDEWorkbenchMessages.getString("GlobalBuildAction.toolTip")); 
			setId("build"); 
			WorkbenchHelp.setHelp(this, IHelpContextIds.GLOBAL_INCREMENTAL_BUILD_ACTION);
			setImageDescriptor(
				IDEInternalWorkbenchImages.getImageDescriptor(
					IDEInternalWorkbenchImages.IMG_CTOOL_BUILD_EXEC));
			setHoverImageDescriptor(
				IDEInternalWorkbenchImages.getImageDescriptor(
					IDEInternalWorkbenchImages.IMG_CTOOL_BUILD_EXEC_HOVER));