Bug 232851 Performance regression: OpenCloseViewTest#showView:ResourceNavigator
3.4 HEAD: Elapsed : 624ms (95% in [621ms, 628ms]) Measurable effect: 6ms (0.4 SDs) CPU Time: 576ms (95% in [564ms, 589ms]) Measurable effect: 25ms (0.4 SDs)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
* @deprecated as of 3.3, use {@link ResourceNavigator#getComparator()}
	 */
    public ResourceSorter getSorter() {
        ViewerSorter sorter = getTreeViewer().getSorter();
        if (sorter instanceof ResourceSorter) {
        	return (ResourceSorter) sorter;
        }
        return null;
    }
    /**
     * Returns the comparator.  If a sorter was set using
	 * {@link #setSorter(ResourceSorter)}, this method will return
	 * <code>null</code>.
     * 
     * @return the <code>ResourceComparator</code>
     * @since 3.3
     */
    public ResourceComparator getComparator(){
    	ViewerComparator comparator = getTreeViewer().getComparator();
    	if (comparator instanceof ResourceComparator) {
    		return (ResourceComparator) comparator;
    	}
    	return null;
    }
    /**
     * Returns the resource viewer which shows the resource hierarchy.
     * @since 2.0
     */
    public TreeViewer getViewer() {
        return viewer;