Bug 92561 Leaked HistoryItems in DocumentManager?
I20050420-1200 In a huge YourKit memory trace, I see that DocumentManager holds 303 Documents in memory. I used local history before, but when I made the dump, no local history dialog was up. YourKit says that the 'Retained size' of the array fgValues is 75,393,728 bytes. [Snapshot on my machine: I20050420-1200_1.5.0_20050425_1004.memory]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
if (structure == null)	 
			return null;		
			
		
		String[] path= createPath((IJavaElement) selector);
			
		
		return find(structure, path, 0);
	}
	
	private static String[] createPath(IJavaElement je) {
			
		
		
		List args= new ArrayList();
		while (je != null) {
			
			
			String name= JavaCompareUtilities.getJavaElementID(je);
			if (name == null)
				return null;
			args.add(name);
			if (je instanceof ICompilationUnit)
				break;
			je= je.getParent();
		}
		
		
		int n= args.size();
		String[] path= new String[n];