Bug 120528 [clean up] inside editor behaves unexpected
Build id: I20051213-0010 Invoking Context Menu > Source > Clean Up... inside a java editor currently does nothing (no dialog, no error message). We should either assume the enclosing cu as a selection or disable the action.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java
return;
	}
	private void runLight(ICompilationUnit cu) {
		if (!ElementValidator.check(cu, getShell(), ActionMessages.CleanUpAction_ErrorDialogTitle, fEditor != null)) 
			return;
		if (!ActionUtil.isProcessable(getShell(), cu))
			return;
		
		CleanUpRefactoring refactoring= new CleanUpRefactoring();
		refactoring.addCompilationUnit(cu);
		
		ICleanUp[] cleanUps= CleanUpRefactoringWizard.createAllCleanUps();
		for (int i= 0; i < cleanUps.length; i++) {
			refactoring.addCleanUp(cleanUps[i]);
		}
		
		int stopSeverity= RefactoringCore.getConditionCheckingFailedSeverity();
		Shell shell= JavaPlugin.getActiveWorkbenchShell();
		BusyIndicatorRunnableContext context= new BusyIndicatorRunnableContext();
		RefactoringExecutionHelper executer= new RefactoringExecutionHelper(refactoring, stopSeverity, true, shell, context);
		try {
			executer.perform();
		} catch (InterruptedException e) {
		} catch (InvocationTargetException e) {
			JavaPlugin.log(e);
		}
	}
	/**
	 * Perform on multiple compilation units. No editors are opened.
	 * @param cus The compilation units to run on