JAL-2322 JAL-2309 replaced references to isheadless variable with method call to...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 16 Nov 2016 14:38:32 +0000 (14:38 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 16 Nov 2016 14:38:32 +0000 (14:38 +0000)
src/jalview/io/HTMLOutput.java

index ccf1ea4..a422a38 100755 (executable)
@@ -43,8 +43,6 @@ public abstract class HTMLOutput
 
   protected IProgressIndicator pIndicator;
 
-  private boolean headless;
-
   protected File generatedFile;
 
   public HTMLOutput(AlignmentPanel ap)
@@ -252,7 +250,7 @@ public abstract class HTMLOutput
   public String getOutputFile() throws NoFileSelectedException
   {
     String selectedFile = null;
-    if (pIndicator != null && !headless)
+    if (pIndicator != null && !isHeadless())
     {
       pIndicator.setProgressBar(MessageManager.formatMessage(
               "status.waiting_for_user_to_select_output_file", "HTML"),
@@ -288,7 +286,7 @@ public abstract class HTMLOutput
 
   protected void setProgressMessage(String message)
   {
-    if (pIndicator != null && !headless)
+    if (pIndicator != null && !isHeadless())
     {
       pIndicator.setProgressBar(message, pSessionId);
     }