Bug 26354 Errors Deleting packages in PackageExplorer
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java
});
				return;
			}
		}
		IJavaElementDelta[] affectedChildren = delta.getAffectedChildren();
		processAffectedChildren(affectedChildren);
	}
	
	private void refreshGrandParent(final IJavaElement element) {
		Object gp= getGrandParent(element);
		if (gp instanceof IJavaElement) {
			IJavaElement el = (IJavaElement) gp;
			if(el.exists())
				fViewer.refresh(gp);
		}
		
		return;
	}
	private Object getGrandParent(IJavaElement element) {
		Object object= getParent(element);
		if((object!=null) && (object instanceof IPackageFragment)) {
			IPackageFragment frag= (IPackageFragment)object;
			if(frag.exists())	
				return getParent(object);
		}
		return object;
	}
	protected void processAffectedChildren(IJavaElementDelta[] affectedChildren) {
		for (int i= 0; i < affectedChildren.length; i++) {
			if (!(affectedChildren[i] instanceof ICompilationUnit)) {