From: kjvdheide Date: Sat, 10 Feb 2018 20:35:53 +0000 (+0100) Subject: JAL-2797 added constructor including embedded/standalone boolean X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fkjvdh%2Ffeatures%2Fforester;p=jalview.git JAL-2797 added constructor including embedded/standalone boolean --- 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):