Trait

dotterweide.editor

History

Related Doc: package editor

Permalink

trait History extends Observable

Undo-redo management.

Notifies observers when canUndo, canRedo, undoName, or redoName change.

Linear Supertypes
Observable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. History
  2. Observable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(edit: NamedEdit): Unit

    Permalink

    Add another edit to the history.

    Add another edit to the history. Unless merging is blocked, it tries to merge this edit with the most recent edit. Afterwards, the internal merge-block flag is cleared.

  2. abstract def blockMerge(): Unit

    Permalink

    Disallow the merging of the next edit to be added.

    Disallow the merging of the next edit to be added. This can be used to avoid merging edits if the editor component was temporarily unfocused, for example.

  3. abstract def canRedo: Boolean

    Permalink

    Whether there are edits that can be redone, and thus whether redo and redoName may be called.

  4. abstract def canUndo: Boolean

    Permalink

    Whether there are undoable edits and thus undo and undoName may be called.

  5. abstract def capture[A](name: String, document: Document, terminal: Terminal)(block: ⇒ A): A

    Permalink

    Creates an automatic edit from tracing events on a document and terminal.

    Creates an automatic edit from tracing events on a document and terminal. The edit, if not empty, will be added to the history before returning.

    name

    the name of the resulting edit

    document

    the document to temporarily trace

    terminal

    the terminal to temporarily trace

    block

    an action that produces events as a side effect. These events will make up the edit.

  6. abstract def clear(): Unit

    Permalink

    Clears the history, removing all edits.

    Clears the history, removing all edits. Afterwards, canUndo and canRedo will return false.

  7. abstract def redo(): Unit

    Permalink

    Throws an exception if !canRedo

  8. abstract def redoName: String

    Permalink

    Throws an exception if !canRedo

  9. abstract def undo(): Unit

    Permalink

    Throws an exception if !canUndo

  10. abstract def undoName: String

    Permalink

    Throws an exception if !canUndo

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def notifyObservers(): Unit

    Permalink
    Definition Classes
    Observable
  16. def onChange(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Observable
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Observable

Inherited from AnyRef

Inherited from Any

Ungrouped