Bug 6196 Last item selected by default in variable selection dialog
Build 20011120 - go to add a classpath variable - Browse for var name - it selects the last item by default Normally the default selection is the first item. This seems picky, but it's actually fairly annoying when using keyboard navigation for the default selection to be in the wrong place. (particularly when the one I always go for is ECLIPSE_HOME, which is always the first item <g>).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
fProjectsPage= null;
		fCurrPage= null;
				
		BuildPathAdapter adapter= new BuildPathAdapter();			
	
		String[] buttonLabels= new String[] {
			 NewWizardMessages.getString("BuildPathsBlock.classpath.up.button"), 
			 NewWizardMessages.getString("BuildPathsBlock.classpath.down.button"), 
			 null,
			 NewWizardMessages.getString("BuildPathsBlock.classpath.checkall.button"), 
			 NewWizardMessages.getString("BuildPathsBlock.classpath.uncheckall.button") 
		
		};
		
		fClassPathList= new CheckedListDialogField(null, buttonLabels, new CPListLabelProvider());
		fClassPathList.setDialogFieldListener(adapter);
		fClassPathList.setLabelText(NewWizardMessages.getString("BuildPathsBlock.classpath.label")); 
		fClassPathList.setUpButtonIndex(0);
		fClassPathList.setDownButtonIndex(1);
		fClassPathList.setCheckAllButtonIndex(3);
		fClassPathList.setUncheckAllButtonIndex(4);		
			
		if (isNewProject) {
			fBuildPathDialogField= new StringDialogField();
		} else {
			StringButtonDialogField dialogField= new StringButtonDialogField(adapter);
			dialogField.setButtonLabel(NewWizardMessages.getString("BuildPathsBlock.buildpath.button")); 
			fBuildPathDialogField= dialogField;
		}
		fBuildPathDialogField.setDialogFieldListener(adapter);