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
fVariablesList.enableButton(1, isSingleSelected && !containsReserved);
		
		fVariablesList.enableButton(3, !containsReserved);
		
		fSelectedVariable= null;
		if (fUseAsSelectionDialog) {
			if (isSingleSelected) {
				fSelectionStatus.setOK();
				fSelectedVariable= ((CPVariableElement)selected.get(0)).getName();
			} else {
				fSelectionStatus.setError(""); 
			}
			fContext.statusChanged(fSelectionStatus);
		}	
	}
	
	private void editEntries(CPVariableElement entry) {
		List existingEntries= fVariablesList.getElements();
		VariableCreationDialog dialog= new VariableCreationDialog(getShell(), entry, existingEntries);
		if (dialog.open() != dialog.OK) {
			return;
		}
		CPVariableElement newEntry= dialog.getClasspathElement();
		if (entry == null) {
			fVariablesList.addElement(newEntry);
			entry= newEntry;
		} else {
			entry.setName(newEntry.getName());