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
private void fillActionBars() {
		IActionBars actionBars= getViewSite().getActionBars();
		fActionSet.fillActionBars(actionBars);
	}
	
	private Object findInputElement() {
		Object input= getSite().getPage().getInput();
		if (input instanceof IWorkspace) { 
			return JavaCore.create(((IWorkspace)input).getRoot());
		} else if (input instanceof IContainer) {
			IJavaElement element= JavaCore.create((IContainer)input);
			if (element != null && element.exists())
				return element;
			return input;
		}
		
		
		
		return JavaCore.create(JavaPlugin.getWorkspace().getRoot());	
	}
	
	/**
	 * Answer the property defined by key.
	 */
	public Object getAdapter(Class key) {
		if (key.equals(ISelectionProvider.class))
			return fViewer;
		if (key == IShowInSource.class) {
			return getShowInSource();
		}