This is an automated email from the ASF dual-hosted git repository. grobmeier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git
commit 90da24b40ea3a26653359978b26cb381e7907d79 Author: Christian Grobmeier <[email protected]> AuthorDate: Sun Dec 17 18:46:08 2023 +0100 reordered methods --- .../org/apache/log4j/chainsaw/logui/LogUI.java | 49 ++++++++++------------ 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java index 9e315e2..45988aa 100644 --- a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java +++ b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java @@ -276,10 +276,6 @@ public class LogUI extends JFrame { chainsawToolBarAndMenus.stateChange(); } - public void buildChainsawLogPanel() { - logUIPanelBuilder.buildLogPanel(false, "Chainsaw", chainsawAppender.getReceiver()); - } - /** * Activates itself as a viewer by configuring Size, and location of itself, * and configures the default Tabbed Pane elements with the correct layout, @@ -379,6 +375,29 @@ public class LogUI extends JFrame { getContentPane().add(logUiReceiversPanel.getMainReceiverSplitPane(), BorderLayout.CENTER); } + public void createCustomExpressionLogPanel(String ident) { + //collect events matching the rule from all of the tabs + try { + List<ChainsawLoggingEvent> list = new ArrayList<>(); + Rule rule = ExpressionRule.getRule(ident); + + for (LogPanel identifierPanel : identifierPanels) { + for (LoggingEventWrapper e : identifierPanel.getMatchingEvents(rule)) { + list.add(e.getLoggingEvent()); + } + } + + logUIPanelBuilder.buildLogPanel(true, ident, null); + } catch (IllegalArgumentException iae) { + statusBar.setMessage( + "Unable to add tab using expression: " + ident + ", reason: " + + iae.getMessage()); + } + } + + public void buildChainsawLogPanel() { + logUIPanelBuilder.buildLogPanel(false, "Chainsaw", chainsawAppender.getReceiver()); + } private void initPrefModelListeners() { int tooltipDisplayMillis = configuration.getInt("tooltipDisplayMillis", 4000); @@ -569,28 +588,6 @@ public class LogUI extends JFrame { return tabbedPane; } - public void createCustomExpressionLogPanel(String ident) { - //collect events matching the rule from all of the tabs - try { - List<ChainsawLoggingEvent> list = new ArrayList<>(); - Rule rule = ExpressionRule.getRule(ident); - - for (LogPanel identifierPanel : identifierPanels) { - for (LoggingEventWrapper e : identifierPanel.getMatchingEvents(rule)) { - list.add(e.getLoggingEvent()); - } - } - - logUIPanelBuilder.buildLogPanel(true, ident, null); - } catch (IllegalArgumentException iae) { - statusBar.setMessage( - "Unable to add tab using expression: " + ident + ", reason: " - + iae.getMessage()); - } - } - - - public void addReceiver(ChainsawReceiver rx) { receivers.add(rx); logUIPanelBuilder.buildLogPanel(false, rx.getName(), rx);
