IVMInstall defaultVMInstall= JavaRuntime.getDefaultVMInstall(); isVisible= (defaultVMInstall == null) || !BuildPathSupport.hasMatchingCompliance(defaultVMInstall, VERSION_1_5);
install= JavaRuntime.getDefaultVMInstall(); } boolean matching= install instanceof IVMInstall2 && compliance.equals(JavaModelUtil.getCompilerCompliance((IVMInstall2) install, compliance)); isVisible= !matching; if (isVisible) { String complianceName= VERSION_1_5.equals(compliance) ? PreferencesMessages.ComplianceConfigurationBlock_version15 : PreferencesMessages.ComplianceConfigurationBlock_version16; if (fProject == null) { fJRE50InfoText.setText(Messages.format(PreferencesMessages.ComplianceConfigurationBlock_jrecompliance_info, complianceName)); } else { fJRE50InfoText.setText(Messages.format(PreferencesMessages.ComplianceConfigurationBlock_jrecompliance_info_project, complianceName)); }
	private void validateJRE50Status() {		if (fJRE50InfoText != null && !fJRE50InfoText.isDisposed()) {			boolean isVisible= false;			String compliance= getStoredValue(PREF_COMPLIANCE); // get actual value			if (VERSION_1_5.equals(compliance)) {				if (fProject != null) { // project specific settings: only test if a 50 JRE is installed					try {						IVMInstall install= JavaRuntime.getVMInstall(JavaCore.create(fProject));						isVisible= (install == null) || !BuildPathSupport.hasMatchingCompliance(install, VERSION_1_5);					} catch (CoreException e) {						JavaPlugin.log(e);					}				} else {					IVMInstall defaultVMInstall= JavaRuntime.getDefaultVMInstall();					isVisible= (defaultVMInstall == null) || !BuildPathSupport.hasMatchingCompliance(defaultVMInstall, VERSION_1_5);				}			}			fJRE50InfoText.setVisible(isVisible);		}	}