dialog.setTitle(NewWizardMessages.getString("LibrariesWorkbookPage.JARArchiveDialog.edit.title")); dialog.setMessage(NewWizardMessages.getString("LibrariesWorkbookPage.JARArchiveDialog.edit.description"));
dialog.setTitle(NewWizardMessages.getString("BuildPathDialogAccess.JARArchiveDialog.edit.title")); dialog.setMessage(NewWizardMessages.getString("BuildPathDialogAccess.JARArchiveDialog.edit.description"));
	public static IPath configureJAREntry(Shell shell, IPath initialEntry, IPath[] usedEntries) {		if (initialEntry == null || usedEntries == null) {			throw new IllegalArgumentException();		}				Class[] acceptedClasses= new Class[] { IFile.class };		TypedElementSelectionValidator validator= new TypedElementSelectionValidator(acceptedClasses, false);				ArrayList usedJars= new ArrayList(usedEntries.length);		IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();		for (int i= 0; i < usedEntries.length; i++) {			IPath curr= usedEntries[i];			if (!curr.equals(initialEntry)) {				IResource resource= root.findMember(usedEntries[i]);				if (resource instanceof IFile) {					usedJars.add(resource);				}			}		}				IResource existing= root.findMember(initialEntry);				ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(shell, new WorkbenchLabelProvider(), new WorkbenchContentProvider());		dialog.setValidator(validator);		dialog.setTitle(NewWizardMessages.getString("LibrariesWorkbookPage.JARArchiveDialog.edit.title")); //$NON-NLS-1$		dialog.setMessage(NewWizardMessages.getString("LibrariesWorkbookPage.JARArchiveDialog.edit.description")); //$NON-NLS-1$		dialog.addFilter(new ArchiveFileFilter(usedJars, true));		dialog.setInput(root);		dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));		dialog.setInitialSelection(existing);		if (dialog.open() == Window.OK) {			IResource element= (IResource) dialog.getFirstResult();			return element.getFullPath();		}		return null;	}