X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJalviewAppender.java;h=df19f7cbbf9047717b5dd9de3060fdaa70c2f819;hb=2241112eaf127ca3e6af08a2f4bc1864fcf21513;hp=1f03c4c17c7207348f408b6a0f030eefefc8bf22;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/gui/JalviewAppender.java b/src/jalview/gui/JalviewAppender.java index 1f03c4c..df19f7c 100644 --- a/src/jalview/gui/JalviewAppender.java +++ b/src/jalview/gui/JalviewAppender.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -32,18 +32,18 @@ import org.apache.log4j.spi.LoggingEvent; */ public class JalviewAppender extends WriterAppender { - - static private JTextArea jTextArea = null; + JTextArea jTextArea = null; /** Set the target JTextArea for the logging information to appear. */ - static public void setTextArea(JTextArea jTextArea) + public void setTextArea(JTextArea jTextArea) { - JalviewAppender.jTextArea = jTextArea; + this.jTextArea = jTextArea; } /** * Format and then append the loggingEvent to the stored JTextArea. */ + @Override public void append(LoggingEvent loggingEvent) { final String message = this.layout.format(loggingEvent); @@ -51,6 +51,7 @@ public class JalviewAppender extends WriterAppender // Append formatted message to textarea using the Swing Thread. SwingUtilities.invokeLater(new Runnable() { + @Override public void run() { if (jTextArea != null)