From b7175b93f334b38b41eb5cf53bd4f45983ba7c53 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Sat, 2 Sep 2023 15:14:51 +0100 Subject: [PATCH] JAL-629 Add accessors for argParser and bootstrapArgs --- src/jalview/bin/Console.java | 4 ++-- src/jalview/bin/Jalview.java | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/jalview/bin/Console.java b/src/jalview/bin/Console.java index 20926cd..1b230ec 100644 --- a/src/jalview/bin/Console.java +++ b/src/jalview/bin/Console.java @@ -337,8 +337,8 @@ public class Console { // send message to stderr if an output file to stdout is expected if (!forceStdout && Jalview.getInstance() != null - && Jalview.getInstance().bootstrapArgs != null - && Jalview.getInstance().bootstrapArgs.outputToStdout()) + && Jalview.getInstance().getBootstrapArgs() != null + && Jalview.getInstance().getBootstrapArgs().outputToStdout()) { return System.err; } diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 6c33812..af638c8 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -139,9 +139,9 @@ public class Jalview public static AlignFrame currentAlignFrame; - public ArgParser argparser = null; + private ArgParser argparser = null; - public BootstrapArgs bootstrapArgs = null; + private BootstrapArgs bootstrapArgs = null; private boolean QUIET = false; @@ -1952,4 +1952,15 @@ public class Jalview } Console.outPrintln("[TESTOUTPUT] arg " + message); } + + public ArgParser getArgParser() + { + return argparser; + } + + public BootstrapArgs getBootstrapArgs() + { + return bootstrapArgs; + } + } -- 1.7.10.2