From 02afcdbc87b196aa929bcffabf83e409fd807077 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Sat, 10 Feb 2018 21:35:53 +0100 Subject: [PATCH] JAL-2797 added constructor including embedded/standalone boolean --- .../archaeopteryx/MainFrameApplication.java | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java b/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java index 45ae79d..9a9c233 100644 --- a/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java +++ b/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java @@ -188,12 +188,13 @@ public final class MainFrameApplication extends MainFrame { private MainFrameApplication( final Phylogeny[] phys, final Configuration config, final String title ) { this( phys, config, title, null ); } - - private MainFrameApplication( final Phylogeny[] phys, + + private MainFrameApplication(final Phylogeny[] phys, final Configuration config, final String title, - final File current_dir ) { - super(); + final File current_dir, + final boolean isEmbedded) { + super(isEmbedded); _configuration = config; if ( _configuration == null ) { throw new IllegalArgumentException( "configuration is null" ); @@ -357,13 +358,15 @@ public final class MainFrameApplication extends MainFrame { // ...and its children _contentpane.repaint(); System.gc(); + } - - - - - + private MainFrameApplication( final Phylogeny[] phys, + final Configuration config, + final String title, + final File current_dir ) { + this(phys,config,title,current_dir,false); + } private MainFrameApplication( final Phylogeny[] phys, final String config_file, final String title ) { // Reads the config file (false, false => not url, not applet): -- 1.7.10.2