removed regexp filtering on time column

This commit is contained in:
fros4943 2009-06-23 12:57:19 +00:00
parent 1c18bf4053
commit e353666550

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: LogListener.java,v 1.15 2009/06/15 08:34:51 fros4943 Exp $ * $Id: LogListener.java,v 1.16 2009/06/23 12:57:19 fros4943 Exp $
*/ */
package se.sics.cooja.plugins; package se.sics.cooja.plugins;
@ -146,7 +146,7 @@ public class LogListener extends VisPlugin {
public Object getValueAt(int row, int col) { public Object getValueAt(int row, int col) {
LogData log = logs.get(row); LogData log = logs.get(row);
if (col == COLUMN_TIME) { if (col == COLUMN_TIME) {
return log.time; return Long.toString(log.time);
} else if (col == COLUMN_FROM) { } else if (col == COLUMN_FROM) {
return log.moteID; return log.moteID;
} else if (col == COLUMN_DATA) { } else if (col == COLUMN_DATA) {
@ -335,7 +335,7 @@ public class LogListener extends VisPlugin {
private void setFilter(String text) { private void setFilter(String text) {
try { try {
if (text != null && text.length() > 0) { if (text != null && text.length() > 0) {
logFilter.setRowFilter(RowFilter.regexFilter(text)); logFilter.setRowFilter(RowFilter.regexFilter(text, 1, 2));
} else { } else {
logFilter.setRowFilter(null); logFilter.setRowFilter(null);
} }
@ -343,7 +343,7 @@ public class LogListener extends VisPlugin {
filterTextField.setToolTipText(null); filterTextField.setToolTipText(null);
} catch (PatternSyntaxException e) { } catch (PatternSyntaxException e) {
filterTextField.setBackground(Color.red); filterTextField.setBackground(Color.red);
filterTextField.setToolTipText("Syntax error: " + e.getMessage()); filterTextField.setToolTipText("Syntax error in regular expression: " + e.getMessage());
} }
} }