Bug 5093 Lost exported classpath entries
Build 205 1. Create new java project 2. Open build path properties 3. Check JRE_LIB so it is exported 4. Press OK 5. Open build path properties again Observe: JRE_LIB is not exported (but it is according to the .classpath) If you press OK without paying attention, you will loose the fact that JRE_LIB was exported.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementSorter.java
int p2= getClassPathIndex(JavaModelUtil.getPackageFragmentRoot((IJavaElement)e2));
				return p2 - p1;
			case STORAGE:
				return ((IStorage)e1).getName().compareToIgnoreCase(((IStorage)e2).getName());
			case RESOURCES:
			case RESOURCEFOLDERS:
				return ((IResource)e1).getName().compareToIgnoreCase(((IResource)e2).getName());
			case RESOURCEPACKAGES:	
				return ((IJavaElement)e1).getElementName().compareToIgnoreCase(((IJavaElement)e2).getElementName());
			default:
				return ((IJavaElement)e1).getElementName().compareTo(((IJavaElement)e2).getElementName());
		}
	}
			
	private int getClassPathIndex(IPackageFragmentRoot root) {
		try {
			if (fClassPath == null)
				fClassPath= root.getJavaProject().getResolvedClasspath(true);
		} catch (JavaModelException e) {
			return 0;
		}
		for (int i= 0; i < fClassPath.length; i++) {
			if (fClassPath[i].getPath().equals(root.getPath()))
				return i;
		}
		return 0;
	}	
	
	
};