Bug 51895 Error when recovering javadoc archive path for a jar
1. add swt.jar to the Java build path of a project 2. open the properties dialog for this jar from the package explorer 3. change the javadoc location to : [x] javadoc in archive archive path: <path_to_eclipse>/plugins/org.eclipse.platform/doc/isv/doc.zip (in my case '/home/luc/host/eclipse/plugins/org.eclipse.platform/doc/isv/doc.zip') path within archive: reference/api 4. close the properties dialog 5. reopen the properties dialog The leading slash is missing, the dialog display the error 'the archive is missing '
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocConfigurationBlock.java
* @see ITreeContentProvider#getParent
		  */
		public Object getParent(Object element) {
			if (element.equals(fProvider.getRoot())) {
				return null;
			}
			IPath path= new Path(fProvider.getFullPath(element));
			if (path.segmentCount() > 0) {
				return findElement(path.removeLastSegments(1));
			}
			return fProvider.getRoot();
		}
	
		/* non java-doc
		 * @see ITreeContentProvider#hasChildren
		 */
		public boolean hasChildren(Object element) {
			List list= fProvider.getChildren(element);
			if (list != null) {
				for (int i= 0; i < list.size(); i++) {
					if (fProvider.isFolder(list.get(i))) {
						return true;
					}
				}
			}
			return false;
		}
	
		/* non java-doc
		 * @see ITreeContentProvider#getChildren