JAL-1713 update from Jalview 2.11.3 develop
[jalview.git] / src / jalview / io / vamsas / Tree.java
index 00e4fbc..e8f6f6b 100644 (file)
@@ -22,7 +22,7 @@ package jalview.io.vamsas;
 
 import jalview.analysis.TreeBuilder;
 import jalview.analysis.TreeModel;
-import jalview.bin.Cache;
+import jalview.bin.Console;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.AlignmentView;
 import jalview.datamodel.BinaryNode;
@@ -128,7 +128,7 @@ public class Tree extends DatastoreItem
       }
     } catch (Exception e)
     {
-      Cache.log.warn("Problems parsing treefile '"
+      Console.warn("Problems parsing treefile '"
               + tree.getNewick(0).getContent() + "'", e);
     }
   }
@@ -141,7 +141,7 @@ public class Tree extends DatastoreItem
   @Override
   public void conflict()
   {
-    Cache.log.info(
+    Console.info(
             "Update (with conflict) from vamsas document to alignment associated tree not implemented yet.");
   }
 
@@ -186,7 +186,7 @@ public class Tree extends DatastoreItem
      * idata[0] != null) { inputData = (AlignmentView) idata[0]; } ntree =
      * getNtree(); title = tree.getNewick(0).getTitle(); if (title == null ||
      * title.length() == 0) { title = tree.getTitle(); // hack!!!! } } catch
-     * (Exception e) { Cache.log.warn("Problems parsing treefile '" +
+     * (Exception e) { Cache.warn("Problems parsing treefile '" +
      * tree.getNewick(0).getContent() + "'", e); }
      */
     log.debug("Update the local tree in jalview from the document.");
@@ -214,7 +214,7 @@ public class Tree extends DatastoreItem
    */
   private Provenance makeTreeProvenance(AlignmentI jal, TreePanel tp)
   {
-    Cache.log.debug("Making Tree provenance for " + tp.getTitle());
+    Console.debug("Making Tree provenance for " + tp.getTitle());
     Provenance prov = new Provenance();
     prov.addEntry(new Entry());
     prov.getEntry(0).setAction("imported " + tp.getTitle());
@@ -259,7 +259,7 @@ public class Tree extends DatastoreItem
         vInput.addSeg(visSeg);
       }
     }
-    Cache.log.debug("Finished Tree provenance for " + tp.getTitle());
+    Console.debug("Finished Tree provenance for " + tp.getTitle());
     return prov;
   }
 
@@ -297,7 +297,7 @@ public class Tree extends DatastoreItem
     }
     if (alsq.size() < sequences.length)
     {
-      Cache.log.warn(
+      Console.warn(
               "Not recovered all alignment sequences for given set of input sequence CIGARS");
     }
     return alsq;
@@ -319,8 +319,7 @@ public class Tree extends DatastoreItem
 
     if (tp.getTree() == null)
     {
-      Cache.log.warn(
-              "Not updating SequenceTreeMap for " + tree.getVorbaId());
+      Console.warn("Not updating SequenceTreeMap for " + tree.getVorbaId());
       return;
     }
     Vector<SequenceNode> leaves = tp.getTree()
@@ -532,9 +531,8 @@ public class Tree extends DatastoreItem
       {
         if (tp.getEntry(pe).getInputCount() > 1)
         {
-          Cache.log.warn(
-                  "Ignoring additional input spec in provenance entry "
-                          + tp.getEntry(pe).toString());
+          Console.warn("Ignoring additional input spec in provenance entry "
+                  + tp.getEntry(pe).toString());
         }
         // LATER: deal sensibly with multiple inputs
         Input vInput = tp.getEntry(pe).getInput(0);
@@ -589,7 +587,7 @@ public class Tree extends DatastoreItem
           // bidirection alignments yet.
           if (to < se[1])
           {
-            Cache.log.warn("Ignoring invalid segment in InputData spec.");
+            Console.warn("Ignoring invalid segment in InputData spec.");
           }
           else
           {
@@ -612,7 +610,7 @@ public class Tree extends DatastoreItem
         return new Object[] { new AlignmentView(view), jal };
       }
     }
-    Cache.log.debug(
+    Console.debug(
             "Returning null for input data recovery from provenance.");
     return null;
   }
@@ -658,7 +656,7 @@ public class Tree extends DatastoreItem
       return true;
     } catch (Exception e)
     {
-      Cache.log.debug("Failed to parse newick tree string", e);
+      Console.debug("Failed to parse newick tree string", e);
     }
     return false;
   }