Bug 27264 opening/closing java files in presence of hiearchical package explorer is slow
will attach profiles
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java
else
									refreshGrandParent(element);
							}
						}
					});
				}
				return;
			} else if (kind == IJavaElementDelta.CHANGED) {
				postRunnable(new Runnable() {
					public void run() {
						Control ctrl = fViewer.getControl();
						if (ctrl != null && !ctrl.isDisposed()) {
							if (!fFoldPackages)
								fViewer.refresh(element);
							else refreshGrandParent(element);
						}
					}
				});
				return;
			}
		}
		IJavaElementDelta[] affectedChildren = delta.getAffectedChildren();
		processAffectedChildren(affectedChildren);
	}
	
	private void refreshGrandParent(final IJavaElement element) {
		if (element instanceof IPackageFragment) {
			Object gp= getGrandParent((IPackageFragment)element);
			if (gp instanceof IJavaElement) {
				IJavaElement el = (IJavaElement) gp;