Bug 26354 Errors Deleting packages in PackageExplorer
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java
});
				return;
			} else if (kind == IJavaElementDelta.ADDED) {
				final Object parent = getParent(element);
				if (parent != null) {
					postRunnable(new Runnable() {
						public void run() {
							Control ctrl = fViewer.getControl();
							if (ctrl != null && !ctrl.isDisposed()) {
								ctrl.setRedraw(false);
								if (!fFoldPackages)
									 ((TreeViewer) fViewer).add(parent, element);
								else
									refreshGrandParent(element);
								ctrl.setRedraw(true);
							}
						}
					});
				}
				return;
			} else if (kind == IJavaElementDelta.CHANGED) {
				postRunnable(new Runnable() {
					public void run() {
						Control ctrl = fViewer.getControl();
						if (ctrl != null && !ctrl.isDisposed()) {
							ctrl.setRedraw(false);
							refreshGrandParent(element);
							ctrl.setRedraw(true);
						}
					}