Bug 118799 [clean up][infrastructure] Clean Up Wizard array out of bound if started without preselected CU
Version: 3.2.0 Build id: I20051130-1215
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CleanUpRefactoringWizard.java
if (fShowCleanUpPage){
			SelectCleanUpPage selectSolverPage= new SelectCleanUpPage(MultiFixMessages.CleanUpRefactoringWizard_SelectCleanUpsPage_name);
			selectSolverPage.setMessage(MultiFixMessages.CleanUpRefactoringWizard_SelectCleanUpsPage_message);
			addPage(selectSolverPage);
		}
	}
		
	public static ICleanUp[] createAllCleanUps() {
		IDialogSettings section= getCleanUpWizardSettings();
		
		ICleanUp[] result= new ICleanUp[4];
		result[0]= new CodeStyleCleanUp(section);
		result[1]= new UnusedCodeCleanUp(section);
		result[2]= new Java50CleanUp(section);
		result[3]= new StringCleanUp(section);
		
		return result;
	}
	
	private static IDialogSettings getCleanUpWizardSettings() {
		IDialogSettings settings= JavaPlugin.getDefault().getDialogSettings();
		IDialogSettings section= settings.getSection(CLEAN_UP_WIZARD_SETTINGS_SECTION_ID);
		if (section == null) {
			section= settings.addNewSection(CLEAN_UP_WIZARD_SETTINGS_SECTION_ID);
		}
		return section;
	}
}