src/Tools/jEdit/src/proofdocument/Text.scala
author immler@in.tum.de
Sun, 11 Jan 2009 13:16:35 +0100
changeset 34465 ccadbf63e320
parent 34456 14367c0715e8
child 34493 0ffbc5ce9654
permissions -rw-r--r--
added EventBus for new command- or keyword-declarations
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34407
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     1
/*
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     2
 * Text as event source
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     3
 *
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     4
 * @author Johannes Hölzl, TU Munich
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     5
 */
aad6834ba380 added some headers and comments;
wenzelm
parents: 34318
diff changeset
     6
34318
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
     7
package isabelle.proofdocument
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
     8
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
     9
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
    10
object Text {
34456
14367c0715e8 replaced EventSource by EventBus;
wenzelm
parents: 34410
diff changeset
    11
  class Changed(val start: Int, val added: Int, val removed: Int)
34318
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
    12
}
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
    13
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
    14
trait Text {
34456
14367c0715e8 replaced EventSource by EventBus;
wenzelm
parents: 34410
diff changeset
    15
  def content(start: Int, stop: Int): String
14367c0715e8 replaced EventSource by EventBus;
wenzelm
parents: 34410
diff changeset
    16
  def length: Int
14367c0715e8 replaced EventSource by EventBus;
wenzelm
parents: 34410
diff changeset
    17
  def changes: EventBus[Text.Changed]
34318
c13e168a8ae6 original sources from Johannes Hölzl a48e0c6ab1aea77c52d596f7efc007a543d3d10c with minor modifications of directory layout;
wenzelm
parents:
diff changeset
    18
}