git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git]
/
src
/
jalview
/
gui
/
JalviewAppender.java
diff --git
a/src/jalview/gui/JalviewAppender.java
b/src/jalview/gui/JalviewAppender.java
index
c1140a1
..
1d7064b
100644
(file)
--- a/
src/jalview/gui/JalviewAppender.java
+++ b/
src/jalview/gui/JalviewAppender.java
@@
-33,20
+33,17
@@
import org.apache.log4j.spi.LoggingEvent;
public class JalviewAppender extends WriterAppender
{
public class JalviewAppender extends WriterAppender
{
- // BH 2019 was static
-
- private JTextArea jTextArea = null;
+ static private JTextArea jTextArea = null;
/** Set the target JTextArea for the logging information to appear. */
/** Set the target JTextArea for the logging information to appear. */
- public void setTextArea(JTextArea jTextArea)
+ static public void setTextArea(JTextArea jTextArea)
{
{
- this.jTextArea = jTextArea;
+ JalviewAppender.jTextArea = jTextArea;
}
/**
* Format and then append the loggingEvent to the stored JTextArea.
*/
}
/**
* Format and then append the loggingEvent to the stored JTextArea.
*/
- @Override
public void append(LoggingEvent loggingEvent)
{
final String message = this.layout.format(loggingEvent);
public void append(LoggingEvent loggingEvent)
{
final String message = this.layout.format(loggingEvent);
@@
-54,7
+51,6
@@
public class JalviewAppender extends WriterAppender
// Append formatted message to textarea using the Swing Thread.
SwingUtilities.invokeLater(new Runnable()
{
// Append formatted message to textarea using the Swing Thread.
SwingUtilities.invokeLater(new Runnable()
{
- @Override
public void run()
{
if (jTextArea != null)
public void run()
{
if (jTextArea != null)