private void add() {

		GhidraFileChooser fileChooser = new GhidraFileChooser(panel);
		fileChooser.setMultiSelectionEnabled(allowMultiFileSelection);
		fileChooser.setFileSelectionMode(fileChooserMode);
		fileChooser.setTitle(title);
		fileChooser.setApproveButtonToolTipText(title);
		if (filter != null) {
			fileChooser.addFileFilter(new GhidraFileFilter() {
				@Override
				public String getDescription() {
					return filter.getDescription();
				}

				@Override
				public boolean accept(File f, GhidraFileChooserModel l_model) {
					return filter.accept(f, l_model);
				}
			});
		}
		String dirPath = Preferences.getProperty(preferenceForLastSelectedDir);
		if (dirPath != null) {
			File dir = new File(dirPath);
			if (dir.isDirectory()) {
				fileChooser.setCurrentDirectory(dir);
			}
		}

		List<File> files = fileChooser.getSelectedFiles();
		if (!files.isEmpty()) {
			if (allowMultiFileSelection) {
				String parent = files.get(0).getParent();
				Preferences.setProperty(preferenceForLastSelectedDir, parent);
				for (File element : files) {
					Path p = new Path(element.getAbsolutePath());
					pathModel.addPath(p, addToTop);
				}
			}
			else {
				String path = files.get(0).getAbsolutePath();
				Path p = new Path(path);
				pathModel.addPath(p, addToTop);
				Preferences.setProperty(preferenceForLastSelectedDir, path);
			}
		}

		fileChooser.dispose();
	}
Clear the paths in the table.
Ghidra/Framework/Docking/src/main/java/docking/widgets/pathmanager/PathManager.java