Bug 3471 Leading '/' in src page of Java wizard is misleading (1G842TH)
1. create new java project "jp" with Create Java Project wizard. 2. in wizard goto second ("Source") page Observe: the Build Output Folder is "/jp/bin" Since this looks like a Unix pathname I interpret the leading "/" as an indication for a absolute pathname. Other tools use something like: {WORKBENCH}/jp/bin or shell variable syntax: $WORKBENCH/jp/bin NOTES: EG (1/30/01 10:34:33 AM) desktop is using the same convention for presenting paths. General issue: how to show a workbench relative path
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
* @param prevRequiredProjects The required projects before changing the class path
	 */
	private static void updateReferencedProjects(IJavaProject jproject, String[] prevRequiredProjects, IProgressMonitor monitor) throws CoreException {
		String[] newRequiredProjects= jproject.getRequiredProjectNames();
		ArrayList prevEntries= new ArrayList(Arrays.asList(prevRequiredProjects));
		ArrayList newEntries= new ArrayList(Arrays.asList(newRequiredProjects));
		
		IProject proj= jproject.getProject();
		IProjectDescription projDesc= proj.getDescription();  
		
		ArrayList newRefs= new ArrayList();
		IProject[] referencedProjects= projDesc.getReferencedProjects();
		for (int i= 0; i < referencedProjects.length; i++) {
			String curr= referencedProjects[i].getName();
			if (newEntries.remove(curr) || !prevEntries.contains(curr)) {
				newRefs.add(referencedProjects[i]);
			}
		}
		IWorkspaceRoot root= proj.getWorkspace().getRoot();
		for (int i= 0; i < newEntries.size(); i++) {
			String curr= (String) newEntries.get(i);
			newRefs.add(root.getProject(curr));
		}		
		projDesc.setReferencedProjects((IProject[]) newRefs.toArray(new IProject[newRefs.size()]));
		proj.setDescription(projDesc, monitor);
	}		
	
	/**
	 * Adds a nature to a project
	 */