From 8b2c0525d0a6360b43f8fd5d3433e785996992c6 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 12 Dec 2017 10:37:19 +0000 Subject: [PATCH] JAL-2877 disabled Jalview's own viewer for testing --- src/jalview/ext/forester/io/TreeParser.java | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/jalview/ext/forester/io/TreeParser.java b/src/jalview/ext/forester/io/TreeParser.java index e11591d..cbdc3e8 100644 --- a/src/jalview/ext/forester/io/TreeParser.java +++ b/src/jalview/ext/forester/io/TreeParser.java @@ -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 { 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 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); + // } } } -- 1.7.10.2