1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-23 21:17:58 +01:00

Added #isVisible and option to configure max number of rows to show in the table. SMACK-95

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2976 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-10-18 19:03:29 +00:00 committed by gato
parent df4c1981ba
commit 52eb5a1049

View file

@ -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;
}
}