Bug 5449 TVT Text Expansion/Truncations in new java class dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
if (name.equals(initSelection)) {
				initSelectedElement= elem;
			}			
		}
		fVariablesList.setElements(elements);
		
		ISelection sel;
		if (initSelectedElement != null) {
			sel= new StructuredSelection(initSelectedElement);
		} else if (entries.length > 0) {
			sel= new StructuredSelection(fVariablesList.getElement(0));
		} else {
			sel= StructuredSelection.EMPTY;
		}
		fVariablesList.selectElements(sel);
	}
	
	private String[] getReservedVariableNames() {
		return new String[] {
			JavaRuntime.JRELIB_VARIABLE,
			JavaRuntime.JRESRC_VARIABLE,
			JavaRuntime.JRESRCROOT_VARIABLE,
		};
	}
	
	public Control createContents(Composite parent) {
		Composite composite= new Composite(parent, SWT.NONE);
		int minimalWidth= SWTUtil.convertWidthInCharsToPixels(80, composite);
		LayoutUtil.doDefaultLayout(composite, new DialogField[] { fVariablesList }, true, minimalWidth, 0, 0, 0);	
		fVariablesList.getTableViewer().setSorter(new ViewerSorter() {