From 76b8869a3f2e6f460be09ff52c549d22ac65fa62 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 17 Jan 2018 16:21:27 +0000 Subject: [PATCH] JAL-281 added initialising trees to FileLoader if fileformat is treefile --- src/jalview/io/FileLoader.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index 6735a80..8e7de3f 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -30,6 +30,7 @@ import jalview.datamodel.AlignmentI; import jalview.datamodel.HiddenColumns; import jalview.datamodel.PDBEntry; import jalview.datamodel.SequenceI; +import jalview.ext.archaeopteryx.AptxInit; import jalview.gui.AlignFrame; import jalview.gui.AlignViewport; import jalview.gui.Desktop; @@ -441,6 +442,13 @@ public class FileLoader implements Runnable alignFrame.getViewport() .applyFeaturesStyle(proxyColourScheme); } + if (format.isTreeFile()) + { + // make generic instead of Aptx specific? + AptxInit.createInstancesFromFile(file, + alignFrame.getViewport()); + + } alignFrame.statusBar.setText(MessageManager.formatMessage( "label.successfully_loaded_file", new String[] { title })); @@ -456,6 +464,7 @@ public class FileLoader implements Runnable AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT); } + try { alignFrame.setMaximum(jalview.bin.Cache -- 1.7.10.2