DelegatingLabelProvider lpWrapper= (DelegatingLabelProvider) viewer.getLabelProvider(); ((JavaSearchResultLabelProvider)lpWrapper.getLabelProvider()).setOrder(order); if (order == JavaSearchResultLabelProvider.SHOW_ELEMENT_CONTAINER) {
((SortingLabelProvider)viewer.getLabelProvider()).setOrder(order); if (order == SortingLabelProvider.SHOW_ELEMENT_CONTAINER) {
	void setSortOrder(int order) {		fCurrentSortOrder= order;		StructuredViewer viewer= getViewer();		DelegatingLabelProvider lpWrapper= (DelegatingLabelProvider) viewer.getLabelProvider();		((JavaSearchResultLabelProvider)lpWrapper.getLabelProvider()).setOrder(order);		if (order == JavaSearchResultLabelProvider.SHOW_ELEMENT_CONTAINER) {			viewer.setSorter(new NameSorter());		} else if (order == JavaSearchResultLabelProvider.SHOW_PATH) {			viewer.setSorter(new PathSorter());		} else			viewer.setSorter(new ParentSorter());	}