clarified long_names -- conform to usual Isabelle practice of not analysing internal names;
authorwenzelm
Mon, 08 Oct 2012 21:17:20 +0200
changeset 49736 dfa100466d2e
parent 49735 30e2f3f1c623
child 49737 dd6fc7c9504a
clarified long_names -- conform to usual Isabelle practice of not analysing internal names;
src/Tools/Graphview/src/parameters.scala
src/Tools/Graphview/src/visualizer.scala
--- a/src/Tools/Graphview/src/parameters.scala	Mon Oct 08 20:39:57 2012 +0200
+++ b/src/Tools/Graphview/src/parameters.scala	Mon Oct 08 21:17:20 2012 +0200
@@ -42,6 +42,6 @@
     val No_Axioms = Color.LIGHT_GRAY
   }
   
-  var long_names = true
+  var long_names = false
   var arrow_heads = false
 }
--- a/src/Tools/Graphview/src/visualizer.scala	Mon Oct 08 20:39:57 2012 +0200
+++ b/src/Tools/Graphview/src/visualizer.scala	Mon Oct 08 21:17:20 2012 +0200
@@ -137,9 +137,9 @@
   }  
   
   object Caption {    
-    def apply(k: String) =
-      if (Parameters.long_names) k
-      else  k.split('.').last
+    def apply(key: String) =
+      if (Parameters.long_names) key
+      else model.complete.get_node(key).name
   }
   
   object Font {