Bug 114486 New project wizard: error message not updated
I20051031-2000 - configure three VMs. One 1.5, one 1.4.2 and one 1.2.2 - set 1.5 as default and set workspace compiler compliance to 5.0 - open new project wizard - select configure link - change default VM to 1.4. observe: you get an error message - change default VM to 1.2. using the configure link observe: error message is NOT updated. It still reads 1.4 JDK.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardFirstPage.java
}
		
		public void handlePossibleJVMChange() {
			String selectedCompliance= fJREGroup.getSelectedCompilerCompliance();
			if (selectedCompliance == null) {
				selectedCompliance= JavaCore.getOption(JavaCore.COMPILER_COMPLIANCE);
			}
			IVMInstall selectedJVM= fJREGroup.getSelectedJVM();
			if (selectedJVM == null) {
				selectedJVM= JavaRuntime.getDefaultVMInstall();
			}
			String jvmCompliance= JavaCore.VERSION_1_4;
			if (selectedJVM instanceof IVMInstall2) {
				jvmCompliance= JavaModelUtil.getCompilerCompliance((IVMInstall2)selectedJVM);
				if (jvmCompliance == null) {
					jvmCompliance= JavaCore.VERSION_1_4;
				}
			}
			if ((selectedCompliance.equals(JavaCore.VERSION_1_5) && !jvmCompliance.equals(JavaCore.VERSION_1_5)) ||
				(jvmCompliance.equals(JavaCore.VERSION_1_5) && !selectedCompliance.equals(JavaCore.VERSION_1_5))) {
				
				if (selectedCompliance.equals(JavaCore.VERSION_1_5))
					selectedCompliance= "5.0"; 
				
				fHintText.setText(Messages.format(NewWizardMessages.JavaProjectWizardFirstPage_DetectGroup_jre_message, new String[] {selectedCompliance, jvmCompliance}));
				fHintText.setVisible(true);
			} else {
				fHintText.setVisible(false);
			}
		}