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
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;
                        
                             
                            
                            linkToEditor(selection);
                        }
                    }
                }
            });
        }