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
if (dialog.open() == Window.OK) {
				String name= provider.getFullPath(dialog.getFirstResult());
				return new Path(name).removeTrailingSeparator().toString();
			}
		} catch (IOException e) {
			JavaPlugin.log(e);
		} finally {
			if (zipFile != null) {
				try {
					zipFile.close();
				} catch (IOException e1) {
					
				}
			}
		}
		return null;
	}
	private String chooseArchive() {
		FileDialog dialog= new FileDialog(fShell, SWT.OPEN);
		dialog.setFilterExtensions(new String[] { FILE_IMPORT_MASK });
		dialog.setText(PreferencesMessages.getString("JavadocConfigurationBlock.zipImportSource.title")); 
		String currentSourceString= fArchiveField.getText();
		int lastSeparatorIndex=	currentSourceString.lastIndexOf(File.separator);
		if (lastSeparatorIndex != -1)
			dialog.setFilterPath(currentSourceString.substring(0, lastSeparatorIndex));
		return dialog.open();
	}
	
	/**
	 * Display an error dialog with the specified message.