use of org.eclipse.egit.ui.internal.push.PushTagsWizard in project egit by eclipse.
the class PushCommand method createPushTagsWizard.
private PushTagsWizard createPushTagsWizard(List<RepositoryTreeNode> nodes) {
List<String> tagNames = new ArrayList<>();
for (RepositoryTreeNode node : nodes) {
if (node instanceof TagNode) {
TagNode tagNode = (TagNode) node;
tagNames.add(tagNode.getObject().getName());
}
}
Repository repository = nodes.get(0).getRepository();
return new PushTagsWizard(repository, tagNames);
}
Aggregations