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);
try { IProgressService progressService= PlatformUI.getWorkbench().getProgressService(); progressService.run(true, true, new WorkbenchRunnableAdapter(this)); } catch (InvocationTargetException e) { JavaPlugin.log(e); } catch (InterruptedException e) { return; }  if (fUpdateJob != null) { fUpdateJob.schedule(); }  if (!f50JREFound) { MessageDialog.openInformation(JavaPlugin.getActiveWorkbenchShell(), CorrectionMessages.ReorgCorrectionsSubProcessor_no_50jre_title, CorrectionMessages.ReorgCorrectionsSubProcessor_no_50jre_message);
		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);			}		}