src/Pure/PIDE/text.scala
changeset 45250 feef63bcd787
parent 45240 9d97bd3c086a
child 45455 4f974c0c5c2f
equal deleted inserted replaced
45249:b769a3a370ad 45250:feef63bcd787
   122   {
   122   {
   123     def insert(start: Offset, text: String): Edit = new Edit(true, start, text)
   123     def insert(start: Offset, text: String): Edit = new Edit(true, start, text)
   124     def remove(start: Offset, text: String): Edit = new Edit(false, start, text)
   124     def remove(start: Offset, text: String): Edit = new Edit(false, start, text)
   125   }
   125   }
   126 
   126 
   127   class Edit(val is_insert: Boolean, val start: Offset, val text: String)
   127   class Edit private(val is_insert: Boolean, val start: Offset, val text: String)
   128   {
   128   {
   129     override def toString =
   129     override def toString =
   130       (if (is_insert) "Insert(" else "Remove(") + (start, text).toString + ")"
   130       (if (is_insert) "Insert(" else "Remove(") + (start, text).toString + ")"
   131 
   131 
   132 
   132