浏览代码

SDK
- Keep error messages in notification tray
- Display normal messages longer in notification tray (3s recognize + 3s realize)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10308 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 12 年之前
父节点
当前提交
3b080a4af9
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      jme3-core/src/com/jme3/gde/core/scene/ApplicationLogHandler.java

+ 3 - 3
jme3-core/src/com/jme3/gde/core/scene/ApplicationLogHandler.java

@@ -116,15 +116,15 @@ public class ApplicationLogHandler extends Handler implements Callable<JButton>
                 NotifyUtil.error(thrown);
                 thrown.printStackTrace(io.getErr());
             } else {
-                NotifyUtil.show("Error", formatter.format(record), MessageType.ERROR, listener, 10000);
+                NotifyUtil.show("Error", formatter.format(record), MessageType.ERROR, listener, 0);
                 io.getErr().println(formatter.formatMessage(record));
             }
         } else if (record.getLevel().equals(Level.WARNING)) {
-            NotifyUtil.show("Warning", formatter.formatMessage(record), MessageType.WARNING, listener, 5000);
+            NotifyUtil.show("Warning", formatter.formatMessage(record), MessageType.WARNING, listener, 10000);
             io.getErr().println(formatter.formatMessage(record));
         } else if (record.getLevel().intValue() > 800) {
             //larger than INFO:
-            NotifyUtil.show("Info", formatter.formatMessage(record), MessageType.INFO, listener, 3000);
+            NotifyUtil.show("Info", formatter.formatMessage(record), MessageType.INFO, listener, 6000);
             io.getOut().println(formatter.formatMessage(record));
         } else if (record.getLevel().equals(Level.INFO)) {
             io.getOut().println(formatter.formatMessage(record));