Bug 136921 [IDE] New File dialog locks for 20 seconds
I have fairly large workspace (many thousands files in 150+ projects). Whenever I try to create a new file, "New File" dialog stays locked for 15-20 seconds before I can start typing file name. CPU utilization is 100% during this time. Eclipse 3.2 I20060331-2000, WinXP SP2, tried with both IBM Java 1.5.0 SR1 and SUN 1.5.0_05.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
}
        }
    }
    /**
     * Gives focus to one of the widgets in the group, as determined by the group.
     */
    public void setInitialFocus() {
        if (allowNewContainerName) {
			containerNameField.setFocus();
		} else {
			treeViewer.getTree().setFocus();
		}
    }
    /**
     * Sets the selected existing container.
     */
    public void setSelectedContainer(IContainer container) {
        selectedContainer = container;
        
        List itemsToExpand = new ArrayList();
        IContainer parent = container.getParent();
        while (parent != null) {
            itemsToExpand.add(0, parent);
            parent = parent.getParent();
        }
        treeViewer.setExpandedElements(itemsToExpand.toArray());
        treeViewer.setSelection(new StructuredSelection(container), true);
    }
}