Bug 41523 Keep Order of libs when editing library [build path]
When I edit a library in the Properties dialog of my project using "Properties"->"Java Build Path"->"Libraries"->"Edit", e.g. changing the JRE from 1.4 to 1.3, or changing from an old version of a JAR to a newer one, the changed library is at the last position in the classpath. It should kept at the position it was.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
for (int i= 0; i < currEntries.length; i++) {
			CPListElement curr= (CPListElement) fClassPathList.getElement(i);
			currEntries[i]= curr.getClasspathEntry();
		}
		return currEntries;
	}
		
	private class JavadocPropertyDialog extends StatusDialog implements IStatusChangeListener {
		private JavadocConfigurationBlock fJavadocConfigurationBlock;
		
		public JavadocPropertyDialog(Shell parent, CPListElement element) {
			super(parent);
			setTitle(NewWizardMessages.getFormattedString("LibrariesWorkbookPage.JavadocPropertyDialog.title", element.getPath().toString())); 
			URL initialLocation= JavaUI.getLibraryJavadocLocation(element.getPath());
			fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, this, initialLocation, false);
		}
		protected Control createDialogArea(Composite parent) {
			Composite composite= (Composite) super.createDialogArea(parent);
			Control inner= fJavadocConfigurationBlock.createContents(composite);
			inner.setLayoutData(new GridData(GridData.FILL_BOTH));
			applyDialogFont(composite);		
			return composite;
		}
		public void statusChanged(IStatus status) {
			updateStatus(status);
		}
		
		public URL getJavaDocLocation() {
			return fJavadocConfigurationBlock.getJavadocLocation();
		}