Bug 43653 Error while deleting resources
An error dialog is displayed while deleting resources, and a few exceptions are printed to the log. I haven't tested how reproducible this problem is. The machine is Eclipse-GTK-I20030925, GNOME, RedHat 9. STEPS: 1.) Make a workspace containing CVS projects for the platform-ui module, and binary projects with linked content for the remaining Eclipse projects. (this project is from a previous I-build) 2.) Select all the binary projects, from the top to the bottom. 3.) Press the "Delete" key. OBSERVED RESULTS: Deletion starts to occur, but stops at some point with an error dialog. Closing the dialog and pressing delete again completes the deletion.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
BusyIndicatorRunnableContext context= new BusyIndicatorRunnableContext();
			context.run(false, true, new WorkbenchRunnableAdapter(op));
			IProblem parseError= op.getParseError();
			if (parseError != null) {
				String message= ActionMessages.getFormattedString("OrganizeImportsAction.single.error.parse", parseError.getMessage()); 
				MessageDialog.openInformation(getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), message);  
				if (fEditor != null && parseError.getSourceStart() != -1) {
					fEditor.selectAndReveal(parseError.getSourceStart(), parseError.getSourceEnd() - parseError.getSourceStart() + 1);
				}
			} else {
				if (fEditor != null) {
					setStatusBarMessage(getOrganizeInfo(op));
				}
			}
		} catch (CoreException e) {	
			ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); 
		} catch (InvocationTargetException e) {
			ExceptionHandler.handle(e, getShell(), ActionMessages.getString("OrganizeImportsAction.error.title"), ActionMessages.getString("OrganizeImportsAction.error.message")); 
		} catch (InterruptedException e) {
		}
	}
	
	private String getOrganizeInfo(OrganizeImportsOperation op) {
		int nImportsAdded= op.getNumberOfImportsAdded();
		if (nImportsAdded >= 0) {
			return ActionMessages.getFormattedString("OrganizeImportsAction.summary_added", String.valueOf(nImportsAdded)); 
		} else {
			return ActionMessages.getFormattedString("OrganizeImportsAction.summary_removed", String.valueOf(-nImportsAdded)); 
		}