use of com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.ui.SelectTagDialog in project intellij-community by JetBrains.
the class TagsHelper method chooseFrom.
@Nullable
private static String chooseFrom(Collection<String> tags, Collection<CvsRevisionNumber> revisions) {
if (tags == null)
return null;
final Collection<String> revisionsNames = collectSortedRevisionsNames(revisions);
if (tags.isEmpty() && revisionsNames.isEmpty()) {
Messages.showMessageDialog(CvsBundle.message("message.no.tags.found"), CvsBundle.message("operation.name.select.tag"), Messages.getInformationIcon());
return null;
}
final SelectTagDialog selectTagDialog = new SelectTagDialog(collectSortedTags(tags), revisionsNames);
if (selectTagDialog.showAndGet()) {
return selectTagDialog.getTag();
}
return null;
}
Aggregations