Bug 17396 Organize import on multiple CUs flickers
20020521 Should use a WorkspaceModifyOperation
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
JavaPlugin.log(e);
					String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.unexpected", e.getMessage()); 
					status.add(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, message, null));					
				} catch (OperationCanceledException e) {
					throw new InterruptedException();
				}
			}
		} finally {
			monitor.done();
		}
	}
				
	private void runOnSingle(ICompilationUnit cu, boolean doResolve) {
		try {
			String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
			int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();
			boolean ignoreLowerCaseNames= ImportOrganizePreferencePage.doIgnoreLowerCaseNames();
			
			if (!cu.isWorkingCopy()) {
				IEditorPart editor= EditorUtility.openInEditor(cu);
				if (editor instanceof JavaEditor) {
					fEditor= (JavaEditor) editor;
				}
				
				ICompilationUnit workingCopy= EditorUtility.getWorkingCopy(cu);
				if (workingCopy != null) {
					cu= workingCopy;
				}
			}