Bug 58800 NLS Search: should support search again
20040413 - do a NLS search (I got an unused key entry) - do a searh again observe: the unused key entry is doubled.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchSorter.java
if (view == null)
			return false;
		fLabelProvider= view.getLabelProvider();
		if (fLabelProvider instanceof JavaSearchResultLabelProvider) {
			((JavaSearchResultLabelProvider)fLabelProvider).setOrder(getSortOrder());
			return true;
		}
		return false;
	}
	/**
	 * @return The sort order flag for the JavaSearchResultLabelProvider.
	 */
	protected abstract int getSortOrder();
	protected ILabelProvider fLabelProvider;
	public void sort(Viewer viewer, Object[] elements) {
		if (!setupLabelProvider())
			return;
		cacheLabels(elements);
		super.sort(viewer, elements);
		fLabelCache.clear();
	}
	private void cacheLabels(Object[] elements) {
		for (int i= 0; i < elements.length; i++) {
			String label= fLabelProvider.getText(elements[i]);
			if (label != null)
				fLabelCache.put(elements[i], label);
		}
	}
}