save time formatting to config
This commit is contained in:
parent
375e6fb1b4
commit
e56dccb840
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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;
|
||||
@ -468,6 +468,10 @@ public class LogListener extends VisPlugin {
|
||||
element.setText(filterTextField.getText());
|
||||
config.add(element);
|
||||
|
||||
if (formatTimeString) {
|
||||
element = new Element("formatted_time");
|
||||
config.add(element);
|
||||
}
|
||||
if (backgroundColors) {
|
||||
element = new Element("coloring");
|
||||
config.add(element);
|
||||
@ -488,6 +492,9 @@ public class LogListener extends VisPlugin {
|
||||
} else if ("coloring".equals(name)) {
|
||||
backgroundColors = true;
|
||||
colorCheckbox.setSelected(true);
|
||||
} else if ("formatted_time".equals(name)) {
|
||||
formatTimeString = true;
|
||||
recacheAllTimeStrings();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user