use of com.intellij.openapi.vcs.changes.committed.ChangesBrowserDialog in project intellij-community by JetBrains.
the class SvnSelectRevisionUtil method chooseCommittedChangeList.
@Nullable
public static SvnChangeList chooseCommittedChangeList(final Project project, final SvnRepositoryLocation location, final VirtualFile root) {
try {
final SvnCommittedChangesTableModel model = new SvnCommittedChangesTableModel(location, project, root, SvnVcs.getInstance(project).getCommittedChangesProvider().getColumns());
final ChangesBrowserDialog dlg = new ChangesBrowserDialog(project, model, ChangesBrowserDialog.Mode.Choose, null);
if (dlg.showAndGet()) {
return (SvnChangeList) dlg.getSelectedChangeList();
}
model.onBeforeClose();
} catch (VcsException e) {
Messages.showErrorDialog(e.getMessage(), SvnBundle.message("error.cannot.load.revisions"));
}
return null;
}
Aggregations