mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
make clean method public
This commit is contained in:
parent
2a86f7a5ad
commit
08ba0b83dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user