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
* If a resource could not be obtained, it uses the workspace root.
     * 
     * @since 2.0
     */
    protected IAdaptable getInitialInput() {
        IAdaptable input = getSite().getPage().getInput();
        if (input != null) {
            IResource resource = null;
            if (input instanceof IResource) {
                resource = (IResource) input;
            } else {
                resource = (IResource) input.getAdapter(IResource.class);
            }
            if (resource != null) {
                switch (resource.getType()) {
                case IResource.FILE:
                    return resource.getParent();
                case IResource.FOLDER:
                case IResource.PROJECT:
                case IResource.ROOT:
                    return resource;
                default:
                    
                    break;
                }
            }
        }
        return ResourcesPlugin.getWorkspace().getRoot();
    }
    /**