You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2022/12/19 02:29:55 UTC
[logging-chainsaw] 03/04: sync detail pane state and tree state with UI
This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git
commit 71e0f0989bf816704a39b40e5e652c7c757ae606
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Sun Dec 18 21:20:11 2022 -0500
sync detail pane state and tree state with UI
---
src/main/java/org/apache/log4j/chainsaw/LogPanel.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/log4j/chainsaw/LogPanel.java b/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
index 64a9b7a..c532ca6 100644
--- a/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
+++ b/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
@@ -421,6 +421,7 @@ public class LogPanel extends DockablePanel implements ChainsawEventBatchListene
hideDetailPane();
}
}
+ firePropertyChange("detailColumnVisible", !detailPaneVisible, detailPaneVisible);
}
}
@@ -437,6 +438,7 @@ public class LogPanel extends DockablePanel implements ChainsawEventBatchListene
} else {
hideLogTreePanel();
}
+ firePropertyChange("logTreePanelVisible", !newValue, newValue);
}
}
@@ -553,7 +555,7 @@ public class LogPanel extends DockablePanel implements ChainsawEventBatchListene
}
});
- m_configuration.addEventListener(ConfigurationEvent.SET_PROPERTY,
+ tabConfig.addEventListener(ConfigurationEvent.SET_PROPERTY,
evt -> {
if( evt.getPropertyName().equals("logpanel.logTreePanelVisible") ){
boolean value = (Boolean) evt.getPropertyValue();
@@ -566,6 +568,7 @@ public class LogPanel extends DockablePanel implements ChainsawEventBatchListene
if( evt.getPropertyName().equals("logpanel.detailColumnVisible") ){
boolean value = (Boolean) evt.getPropertyValue();
menuItemToggleDetails.setSelected(value);
+
}
});