Bug 114485 Project created with default JDK and compliance set project specific values
I20051031-2000 - start Eclipse with 1.5 VM - create new project and acceptr defaults - a project is created using the 1.5 JDK Observe: - the project has project specific compiler compliance level instead of using the workspace default which is 5.0 as well. Project specific compiler compliance should only be set when a project specific JDK is selected.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardFirstPage.java
IVMInstall install = installs[j];
					standins.add(new VMStandin(install));
				}
			}
			return ((IVMInstall[])standins.toArray(new IVMInstall[standins.size()]));	
		}
		private String getDefaultJVMName() {
			return JavaRuntime.getDefaultVMInstall().getName();
		}
		private String getDefaultJVMLabel() {
			return Messages.format(NewWizardMessages.JavaProjectWizardFirstPage_JREGroup_default_compliance, getDefaultJVMName());
		}
		public void update(Observable o, Object arg) {
			updateEnableState();
		}
		private void updateEnableState() {
			final boolean detect= fDetectGroup.mustDetect();
			fUseDefaultJRE.setEnabled(!detect);
			fUseProjectJRE.setEnabled(!detect);
			fJRECombo.setEnabled(!detect && fUseProjectJRE.isSelected());
			fPreferenceLink.setEnabled(!detect);
			fGroup.setEnabled(!detect);
		}
		
		/* (non-Javadoc)
		 * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 */
		public void widgetSelected(SelectionEvent e) {
			widgetDefaultSelected(e);
		}