Search in sources :

Example 1 with SelectTagDialog

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;
}
Also used : SelectTagDialog(com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.ui.SelectTagDialog) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

SelectTagDialog (com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.ui.SelectTagDialog)1 Nullable (org.jetbrains.annotations.Nullable)1