From d50fd279e22d3939612cac97cd08815c98bf10e4 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 8 Nov 2018 11:04:20 +0000 Subject: [PATCH] JAL-3048 use JalviewJS compatible JalviewFileChooser.showOpenDialog --- src/jalview/gui/AlignFrame.java | 6 +++--- src/jalview/gui/Desktop.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 56ef63b..f9f5cfd 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -1485,7 +1485,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, }); - chooser.openDialog(this); + chooser.showOpenDialog(this); } /** @@ -3997,7 +3997,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, JvOptionPane.WARNING_MESSAGE); } } - }).openDialog(this); + }).showOpenDialog(this); } public TreePanel showNewickTree(NewickFile nf, String treeTitle) @@ -5711,7 +5711,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } }; - }).openDialog(null); + }).showOpenDialog(null); } diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 6c1ed3a..e7be765 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -1144,7 +1144,7 @@ public class Desktop extends jalview.jbgui.GDesktop new FileLoader().LoadFile(viewport, selectedFile, DataSourceType.FILE, format); } - }).openDialog(this); + }).showOpenDialog(this); } /** -- 1.7.10.2