Bug 6308 Open type dialog should trim entered value
Leading and trailing spaces should be ignored in the input field of this dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java
int start= fFoldedIndices[index];			
		int count= (index == fFoldedCount - 1)
			? fFilteredCount - start
			: fFoldedIndices[index + 1] - start;
			
		Object[] elements= new Object[count];
		for (int i= 0; i != count; i++)
			elements[i]= fElements[fFilteredIndices[start + i]];
				
		return elements;
	}
    /*
     * Folds duplicate entries. Two elements are considered as a pair of
     * duplicates if they coiincide in the rendered string and image.
     * @return returns the number of elements after folding.
     */
	private int fold() {
		if (fAllowDuplicates) {
			for (int i= 0; i != fFilteredCount; i++) 		
				fFoldedIndices[i]= i; 
			return fFilteredCount;			
		
		} else {
			int k= 0;
			Label last= null;
			for (int i= 0; i != fFilteredCount; i++) {
				int j= fFilteredIndices[i];
				
				Label current= fLabels[j];