Bug 52474 UI Blocked when opening Java Perspective during CVS check out
build I20040218 - start eclipse with a new workspace - switch to CVS Repository Exploring perspective - check out a number of projects ( i checkout Platform UI module) - now attempt to switch to the Java Perspective NOTE that at this point the "UI is blocked" dialog is opened. Probably due to the fact that starting the Java Perspective requires the workbench lock? The point here is that this will be a common pattern and it would be nice if we could investigate makeing this scenario work more smoothly.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
JavaPlugin.log(e);
				}
				return false;
			}
			
			protected void handleInvalidSelection(ISelection invalidSelection, ISelection newSelection) {
				IStructuredSelection is= (IStructuredSelection)invalidSelection;
				List ns= null;
				if (newSelection instanceof IStructuredSelection) {
					ns= new ArrayList(((IStructuredSelection)newSelection).toList());
				} else {
					ns= new ArrayList();
				}
				boolean changed= false;
				for (Iterator iter= is.iterator(); iter.hasNext();) {
					Object element= iter.next();
					if (element instanceof IJavaProject) {
						IProject project= ((IJavaProject)element).getProject();
						if (!project.isOpen()) {
							ns.add(project);
							changed= true;
						}
					} else if (element instanceof IProject) {
						IProject project= (IProject)element;
						if (project.isOpen()) {
							IJavaProject jProject= JavaCore.create(project);
							if (jProject != null && jProject.exists())
								ns.add(jProject);
								changed= true;
						}