diff --git a/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java b/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java index 87e5d7d56..9593ec9d5 100644 --- a/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java +++ b/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java @@ -52,6 +52,14 @@ public class EnhancedDebuggerWindow { private static ImageIcon connectionClosedOnErrorIcon; public static boolean PERSISTED_DEBUGGER = false; + /** + * Keeps the max number of rows to keep in the tables. A value less than 0 means that packets + * will never be removed. Since debuggers are meant to be used by developers the default is + * to keep all the information. However, if you are planning to use this debugger in a + * production environment then you should set a lower value (e.g. 50) to prevent the debugger + * from consuming all the JVM memory. + */ + public static int MAX_TABLE_ROWS = -1; { URL url; @@ -361,4 +369,10 @@ public class EnhancedDebuggerWindow { } } + public boolean isVisible() { + if (frame != null) { + return frame.isVisible(); + } + return false; + } }