Bug 22508 Add Variable Window Small/Not Persistant [build path]
1.It would be very useful if when you went to a java project -> properties it not only remembered that you were in Java Build Path but also that you were, for example in the "Libraries" page. Frequently, I have to go to a project and add a variable and switch pages to do so. 2. In the "Add Variable" option of the above listed page (Properties->Java Build Path-> Libraries) the variable list window is considerably to small for easy use and worse cannot be resized. 3. When going to "Extend..." of the above option, it would be convient to be able to simply double click an item/folder to expand it or select it rather than have to specifically select the tree expand box. Also, is there any reason this now uses a tree instead of the normal file browser as it was in Eclipse 1.0. (The tree is uneccesarily cluttered with non compatible files like .txt, instead of just .jar and .zip files). Thanks! ~Scott Admiraal ~IBM PvC - Telematics
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/JavaCapabilityConfigurationPage.java
}
		};
		fBuildPathsBlock= new BuildPathsBlock(ResourcesPlugin.getWorkspace().getRoot(), listener, true);
	}
	
	/**
	 * Initializes the page with the project and default classpaths.
	 * <p>
	 * The default classpath entries must correspond the the given project.
	 * </p>
	 * <p>
	 * The caller of this method is responsible for creating the underlying project. The page will create the output,
	 * source and library folders if required.
	 * </p>
	 * <p>
	 * The project does not have to exist at the time of initialization, but must exist when executing the runnable
	 * obtained by <code>getRunnable()</code>.
	 * </p>
	 * @param project The Java project.
	 * @param entries The default classpath entries or <code>null</code> to let the page choose the default
	 * @param path The folder to be taken as the default output path or <code>null</code> to let the page choose the default
	 * @return overrideExistingClasspath If set to <code>true</code>, an existing '.classpath' file is ignored. If set to <code>false</code>
	 * the given default classpath and output location is only used if no '.classpath' exists.
	 */
	public void init(IJavaProject jproject, IPath defaultOutputLocation, IClasspathEntry[] defaultEntries, boolean defaultsOverrideExistingClasspath) {
		if (!defaultsOverrideExistingClasspath && jproject.exists() && jproject.getProject().getFile(".classpath").exists()) { 
			defaultOutputLocation= null;
			defaultEntries= null;
		}
		fBuildPathsBlock.init(jproject, defaultOutputLocation, defaultEntries);