added central id generator;
authorwenzelm
Sun, 28 Dec 2008 20:30:54 +0100
changeset 34449 57fce8528a22
parent 34448 39cb4ed5183b
child 34450 db45b50cd361
added central id generator;
src/Tools/jEdit/src/jedit/Plugin.scala
--- a/src/Tools/jEdit/src/jedit/Plugin.scala	Sun Dec 28 19:37:51 2008 +0100
+++ b/src/Tools/jEdit/src/jedit/Plugin.scala	Sun Dec 28 20:30:54 2008 +0100
@@ -69,6 +69,12 @@
   }
 
 
+  /* unique ids */  // FIXME specific to "session" (!??)
+
+  private var id_count: BigInt = 0
+  def id() : String = synchronized { id_count += 1; "editor:" + id_count }
+
+
   // mapping buffer <-> prover
 
   private val mapping = new HashMap[JEditBuffer, ProverSetup]