more tooltips;
authorwenzelm
Tue, 06 Aug 2013 21:41:24 +0200
changeset 52878 8069c8b9335e
parent 52877 9a26ec5739dd
child 52879 1df5280f8713
more tooltips;
src/Tools/jEdit/src/query_operation.scala
--- a/src/Tools/jEdit/src/query_operation.scala	Tue Aug 06 21:34:58 2013 +0200
+++ b/src/Tools/jEdit/src/query_operation.scala	Tue Aug 06 21:41:24 2013 +0200
@@ -87,9 +87,17 @@
   private def animation_update()
   {
     animation_icon.stop
-    if (current_status != Status.FINISHED) {
-      animation_icon.setRate(if (current_status == Status.RUNNING) 15 else 5)
-      animation_icon.start
+    current_status match {
+      case Status.WAITING =>
+        animation.tooltip = "Waiting for evaluation of query context ..."
+        animation_icon.setRate(5)
+        animation_icon.start
+      case Status.RUNNING =>
+        animation.tooltip = "Running query operation ..."
+        animation_icon.setRate(15)
+        animation_icon.start
+      case Status.FINISHED =>
+        animation.tooltip = null
     }
   }