From: Jim Procter Date: Fri, 29 Jun 2018 16:14:21 +0000 (+0100) Subject: JAL-3048 use FileParse to transfer File to NewickFile parser X-Git-Tag: Release_2_11_4_0~45^2~18^2~603^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8b4803348445fde3efd484eabc39fadd1d9fd3e8;p=jalview.git JAL-3048 use FileParse to transfer File to NewickFile parser --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index dafeafc..4695ed7 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3926,7 +3926,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, NewickFile fin = null; try { - fin = new NewickFile(filePath, DataSourceType.FILE); + fin = new NewickFile(new FileParse( + chooser.getSelectedFile(), DataSourceType.FILE)); viewport.setCurrentTree( showNewickTree(fin, filePath).getTree()); } catch (Exception ex)