setCurrentTaxaList(treeTaxonLabels);
setCurrentTreeTaxa(treeTaxa);
Enumeration e = treeVector.elements();
while (e.hasMoreElements()) {
Tree mesqTree = (Tree) e.nextElement();
String newick = mesqTree.writeTreeByNames(true);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(" tree=" + newick); //$NON-NLS-1$
}
// System.out.println(" tree: " + mesqTree.getName() + " " + newick);
PhyloTree phyloTree = new PhyloTree();
phyloTree.setLabel(mesqTree.getName());
phyloTree.setNexusFileName(pFile.getName());
phyloTree.setPublished(false);
phyloTree.setRootedTree(mesqTree.getRooted());
phyloTree.setNewickString(newick);
phyloTree.setStudy(pStudy);
// phyloTree.setBigTree(false); //TODO
// phyloTree.setTreeType(treeType);
// phyloTree.setTreeAttribute(pNewTreeAttribute);
// phyloTree.setTreeQuality(pNewTreeQuality);
int rootIndex = mesqTree.getRoot();
PhyloTreeNode rootNode = createNode(mesqTree, null, rootIndex);
phyloTree.addTreeNode(rootNode);
phyloTree.setRootNode(rootNode);
treeTraversal(mesqTree, rootIndex, rootNode);