save time formatting to config
This commit is contained in:
parent
375e6fb1b4
commit
e56dccb840
1 changed files with 8 additions and 1 deletions
|
@ -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.33 2010/10/12 10:04:35 fros4943 Exp $
|
* $Id: LogListener.java,v 1.34 2010/10/12 10:56:25 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.plugins;
|
package se.sics.cooja.plugins;
|
||||||
|
@ -468,6 +468,10 @@ public class LogListener extends VisPlugin {
|
||||||
element.setText(filterTextField.getText());
|
element.setText(filterTextField.getText());
|
||||||
config.add(element);
|
config.add(element);
|
||||||
|
|
||||||
|
if (formatTimeString) {
|
||||||
|
element = new Element("formatted_time");
|
||||||
|
config.add(element);
|
||||||
|
}
|
||||||
if (backgroundColors) {
|
if (backgroundColors) {
|
||||||
element = new Element("coloring");
|
element = new Element("coloring");
|
||||||
config.add(element);
|
config.add(element);
|
||||||
|
@ -488,6 +492,9 @@ public class LogListener extends VisPlugin {
|
||||||
} else if ("coloring".equals(name)) {
|
} else if ("coloring".equals(name)) {
|
||||||
backgroundColors = true;
|
backgroundColors = true;
|
||||||
colorCheckbox.setSelected(true);
|
colorCheckbox.setSelected(true);
|
||||||
|
} else if ("formatted_time".equals(name)) {
|
||||||
|
formatTimeString = true;
|
||||||
|
recacheAllTimeStrings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue