Bug 81098 Quick Fix 'Change workspace compliance settings to 5.0' with project specific settings [quick fix]
M4 test pass. The Quick Fix 'Change workspace compliance settings to 5.0' does not make much sense when the project already has project specific settings. Either the Quick Fix should not appear when the project overrides workspace settings, or the user should be asked whether the project should take over workspace settings.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ReorgCorrectionsSubProcessor.java
public ChangeTo50Compilace(String name, IJavaProject project) {
			super(name, null, 5, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE));
			fProject= project;
		}
		
		public void apply(IDocument document) {
			if (fProject != null) {
				Map map= fProject.getOptions(false);
				JavaModelUtil.set50CompilanceOptions(map);
				fProject.setOptions(map);
				CoreUtility.startBuildInBackground(fProject.getProject());
			} else {
				Hashtable map= JavaCore.getOptions();
				JavaModelUtil.set50CompilanceOptions(map);
				JavaCore.setOptions(map);
				CoreUtility.startBuildInBackground(null);
			}
		}
	}
	public static void getNeed50ComplianceProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) {
		ICompilationUnit cu= context.getCompilationUnit();
		String label1= CorrectionMessages.getString("ReorgCorrectionsSubProcessor.50_project_compliance.description"); 
		proposals.add(new ChangeTo50Compilace(label1, cu.getJavaProject()));
		String label2= CorrectionMessages.getString("ReorgCorrectionsSubProcessor.50_workspace_compliance.description"); 
		proposals.add(new ChangeTo50Compilace(label2, null));
	}
	
}