Bug 65638 PackageExplorer creation very slow
in RC1 we were testing the big workspace "dev" scenario. starting the big workspace with a resources, Java and Debug perspective open in their standard configurations. There is also a Java editor open (int he Java perspective) on CoreException.class) On my machine starting up this configuration takes 17500ms (in 2.1.3 it takes 12300ms). If I close the PackageExplorer in 3.0 takes 11875ms (and 2.1.3 takes 10953ms). The net being that on 3.0 the PackageExplorer is taking 5200ms to open whereas in 2.1.3 it took about 900ms). I have not had a chance to look much deeper. Perhaps you can supply some insight as to what is expected here. Note that this is not just a startup phenomena. Opening a PackageExplorer after the fact is also very slow.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java
if (root.getKind() == IPackageFragmentRoot.K_SOURCE) {
				return true;
			}
		}
		return false;
	}
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction.
	 */
	public void run(ITextSelection selection) {
	}
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction.
	 */
	public void run(IStructuredSelection selection) {
		ICompilationUnit[] cus= getCompilationUnits(selection);
		if (cus.length > 1) {
			int returnCode= OptionalMessageDialog.open("FormatAll",  
					getShell(), 
					ActionMessages.getString("FormatAllAction.noundo.title"), 
					null,
					ActionMessages.getString("FormatAllAction.noundo.message"),  
					MessageDialog.WARNING, 		
					new String[] {IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 
					0);
			if (returnCode != OptionalMessageDialog.NOT_SHOWN && 
					returnCode != Window.OK ) return;
		}