make clean method public

This commit is contained in:
Fredrik Osterlind 2012-01-26 16:03:01 +01:00
parent 2a86f7a5ad
commit 08ba0b83dc

View File

@ -621,24 +621,26 @@ public class TimeLine extends VisPlugin {
private Action clearAction = new AbstractAction("Clear logs") {
private static final long serialVersionUID = -4592530582786872403L;
private void clearLogs() {
public void actionPerformed(ActionEvent e) {
if (simulation.isRunning()) {
simulation.invokeSimulationThread(new Runnable() {
public void run() {
clear();
}
});
} else {
clear();
}
}
};
public void clear() {
for (MoteEvents me : allMoteEvents) {
me.clear();
}
repaint();
}
public void actionPerformed(ActionEvent e) {
if (simulation.isRunning()) {
simulation.invokeSimulationThread(new Runnable() {
public void run() {
clearLogs();
}
});
} else {
clearLogs();
}
}
};
private class MoteStatistics {
Mote mote;