Bug 157495 [Viewers] public subclasses of ViewerSorter should be changed to ViewerComparator
The following 3 classes in the ui should be changed to be subclasses of ViewerComparator: ResourceSorter WorkbenchViewerSorter FileViewerSorter This will involve deprecating old classes and methods, and adding new classes and methods for each of these classes and to classes that reference these sorter classes in their API.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
* Handles a selection changed event from the viewer.
     * Updates the status line and the action bars, and links to editor (if option enabled).
     * 
     * @param event the selection event
     * @since 2.0
     */
    protected void handleSelectionChanged(SelectionChangedEvent event) {
        final IStructuredSelection sel = (IStructuredSelection) event
                .getSelection();
        updateStatusLine(sel);
        updateActionBars(sel);
        dragDetected = false;
        if (isLinkingEnabled() && !linkScheduled) {
            
            
            linkScheduled = true;
            getShell().getDisplay().asyncExec(new Runnable() {
                public void run() {
                    
                    
                    linkScheduled = false;
                    
                    if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed()) {
                        return;
                    }
                    
                    if (dragDetected == false) {
                        ISelection sel = viewer.getSelection();
                        if (sel instanceof IStructuredSelection) {
                            IStructuredSelection selection = (IStructuredSelection)sel;