Bug 187594 Compiler warnings in I20070517-0010
1. WARNING in /Eclipse RCP Tests/org/eclipse/ui/tests/rcp/WorkbenchWindowConfigurerTest.java (at line 189) ActionBarAdvisor advisor = new ActionBarAdvisor(configurer) { The local variable advisor is never read 1. WARNING in /src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java (at line 38) import org.eclipse.jface.dialogs.Dialog; The import org.eclipse.jface.dialogs.Dialog is never used 2. WARNING in /src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java (at line 46) import org.eclipse.jface.resource.ImageRegistry; The import org.eclipse.jface.resource.ImageRegistry is never used 3. WARNING in /src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java (at line 47) import org.eclipse.jface.resource.JFaceResources; The import org.eclipse.jface.resource.JFaceResources is never used
bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java
for (int i = 0; i < commandLineArgs.length; i++) {
			if (commandLineArgs[i].equalsIgnoreCase("-refresh")) { 
				return;
			}
		}
		final IContainer root = ResourcesPlugin.getWorkspace().getRoot();
		Job job = new WorkspaceJob(IDEWorkbenchMessages.Workspace_refreshing) {
			public IStatus runInWorkspace(IProgressMonitor monitor)
					throws CoreException {
				root.refreshLocal(IResource.DEPTH_INFINITE, monitor);
				return Status.OK_STATUS;
			}
		};
		job.setRule(root);
		job.schedule();
	}
	/**
	 * Disconnect from the core workspace.
	 */
	private void disconnectFromWorkspace() {
		
		final MultiStatus status = new MultiStatus(
				IDEWorkbenchPlugin.IDE_WORKBENCH, 1,
				IDEWorkbenchMessages.ProblemSavingWorkbench, null);
		IRunnableWithProgress runnable = new IRunnableWithProgress() {
			public void run(IProgressMonitor monitor) {
				try {
					status.merge(ResourcesPlugin.getWorkspace().save(true,
							monitor));
				} catch (CoreException e) {