Bug 77599 [5.0] Structure comparing of enums does not work
I200411022000 1. Create enum (either as separete file or inside a class): public enum E { A, B, C, D, F, Incomplete } 2. Delete B and save 3. compare ==> no structural difference gets reported
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];