Bug 94730 [projection] Nondeterministic folding summary
I20050509-2010 With the CU below: - fold the method declaration -> 'bar()' is shown as summary - unfold again - select the method name 'bar' - type 'foo' - fold the method declaration again -> 'void' is shown as summary "interface Bar { void bar(); } "
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/folding/DefaultJavaFoldingStructureProvider.java
}
	protected void processDelta(IJavaElementDelta delta) {
		if (!isInstalled())
			return;
		if ((delta.getFlags() & (IJavaElementDelta.F_CONTENT | IJavaElementDelta.F_CHILDREN)) == 0)
			return;
		ProjectionAnnotationModel model= (ProjectionAnnotationModel) fEditor.getAdapter(ProjectionAnnotationModel.class);
		if (model == null)
			return;
		try {
			IDocumentProvider provider= fEditor.getDocumentProvider();
			fCachedDocument= provider.getDocument(fEditor.getEditorInput());
			fAllowCollapsing= false;
			fFirstType= null;
			fHasHeaderComment= false;
			Map additions= new HashMap();
			List deletions= new ArrayList();
			List updates= new ArrayList();
			Map updated= computeAdditions((IParent) fInput);
			Map previous= createAnnotationMap(model);
			Iterator e= updated.keySet().iterator();
			while (e.hasNext()) {
				JavaProjectionAnnotation newAnnotation= (JavaProjectionAnnotation) e.next();
				IJavaElement element= newAnnotation.getElement();
				Position newPosition= (Position) updated.get(newAnnotation);
				List annotations= (List) previous.get(element);
				if (annotations == null) {
					additions.put(newAnnotation, newPosition);
				} else {
					Iterator x= annotations.iterator();