JAL-2877 disabled Jalview's own viewer for testing spikes/thomas
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 12 Dec 2017 10:37:19 +0000 (10:37 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 12 Dec 2017 10:37:19 +0000 (10:37 +0000)
src/jalview/ext/forester/io/TreeParser.java

index e11591d..cbdc3e8 100644 (file)
@@ -5,7 +5,6 @@ import jalview.gui.AlignViewport;
 //import jalview.ext.treeviewer.ExternalTreeParserI;
 import jalview.gui.Desktop;
 import jalview.gui.JvOptionPane;
-import jalview.io.DataSourceType;
 import jalview.io.NewickFile;
 import jalview.util.MessageManager;
 
@@ -40,9 +39,9 @@ public class TreeParser // implements ExternalTreeParserI<MainFrame>
       {
         AptxInit.createInstancesFromFile(filePath, viewport);
 
-        fin = new NewickFile(filePath, DataSourceType.FILE);
-        viewport.setCurrentTree(viewport.getAlignPanel().alignFrame
-                .showNewickTree(fin, filePath).getTree());
+      // fin = new NewickFile(filePath, DataSourceType.FILE);
+      // viewport.setCurrentTree(viewport.getAlignPanel().alignFrame
+      // .showNewickTree(fin, filePath).getTree());
 
       } catch (Exception ex)
       {
@@ -51,14 +50,14 @@ public class TreeParser // implements ExternalTreeParserI<MainFrame>
                 JvOptionPane.WARNING_MESSAGE);
         ex.printStackTrace();
       }
-      if (fin != null && fin.hasWarningMessage())
-      {
-        JvOptionPane.showMessageDialog(Desktop.desktop,
-                fin.getWarningMessage(),
-                MessageManager
-                        .getString("label.possible_problem_with_tree_file"),
-                JvOptionPane.WARNING_MESSAGE);
-      }
+    // if (fin != null && fin.hasWarningMessage())
+    // {
+    // JvOptionPane.showMessageDialog(Desktop.desktop,
+    // fin.getWarningMessage(),
+    // MessageManager
+    // .getString("label.possible_problem_with_tree_file"),
+    // JvOptionPane.WARNING_MESSAGE);
+    // }
     }
   }