Bug 62086 [User library] Jars in User Libraries Can't be ordered
Inorder to get a patch to Easymock to work the patch jar must be first in the classpath. There does not appear to be a way to do this with the User Libraries. I'm using the I20040506 build.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/UserLibraryPreferencePage.java
doSelectionChanged(fLibraryList);  
	}
	
	public static IJavaProject getPlaceholderProject() {
		String name= "####internal"; 
		IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
		while (true) {
			IProject project= root.getProject(name);
			if (!project.exists()) {
				return JavaCore.create(project);
			}
			name += '1';
		}		
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jface.preference.PreferencePage#applyData(java.lang.Object)
	 */
	public void applyData(Object data) {
		if (data instanceof String) {
			String arg= (String) data;
			String selectedLibrary= null;
			boolean createIfNotExists= false;
			if (arg.startsWith(DATA_PREFIX_CREATE)) {
				selectedLibrary= arg.substring(DATA_PREFIX_CREATE.length());
				createIfNotExists= true;
			} else if (arg.startsWith(DATA_PREFIX_SELECT)) {
				selectedLibrary= arg.substring(DATA_PREFIX_SELECT.length());
			}