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/fix/CleanUpRefactoringWizard.java
group.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
				group.setLayout(new GridLayout(1, true));
				group.setText(tuple.getName());
				
				ICleanUp cleanUp= tuple.getCleanUp();
				cleanUp.createConfigurationControl(group);
				if (project != null && !cleanUp.canCleanUp(project)) {
					disableGroup(group);
				}
			}
		}
		
		private void disableGroup(Composite composite) {
			composite.setEnabled(false);
			Control[] children= composite.getChildren();
			for (int i= 0; i < children.length; i++) {
				Control child= children[i];
				if (child instanceof Composite) {
					disableGroup((Composite)child);
				} else {
					child.setEnabled(false);
				}
			}
		}
		private boolean areInSameProject(ICompilationUnit[] compilationUnits) {
			if (compilationUnits.length == 0)
				return false;
			
			IJavaProject p= compilationUnits[0].getJavaProject();
			if (p == null)