allowingVersions = pAllowingVersions;
}
public RepoPathElement[] show(final Project pProject) {
final DialogBuilder builder = new DialogBuilder(pProject);
final RepositoryBrowser browser = new DialogRepoBrowser(pProject, builder);
builder.addOkAction();
builder.addCancelAction();
builder.setCenterPanel(browser);
builder.setTitle(title == null || title.trim().length() == 0 ? "Browse Repository" : title);
builder.setOkActionEnabled(false);
final int exitCode = builder.show();
if (exitCode == DialogWrapper.OK_EXIT_CODE)
return browser.getSelectedItems();
else
return null;
}