Packages

trait UndoManager[T <: Exec[T]] extends Disposable[T] with Observable[T, Update[T]]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UndoManager
  2. Observable
  3. Disposable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def addEdit(edit: UndoableEdit[T])(implicit tx: T): Unit

    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()(implicit tx: T): Unit

    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(implicit tx: T): Boolean

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

  4. abstract def canUndo(implicit tx: T): Boolean

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

  5. abstract def capture[A](name: String)(block: => A)(implicit tx: T): A

    Creates a compound capture if during the execution of block more than one edit is added.

    Creates a compound capture if during the execution of block more than one edit is added. If exactly one edit is added, it will be directly added without a wrapping compound.

    Note: this wraps the call in UndoManager.using, so this manager is found by agnostic code.

  6. abstract def clear()(implicit tx: T): Unit

    Clears the history, removing all edits.

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

  7. abstract def dispose()(implicit tx: T): Unit
    Definition Classes
    Disposable
  8. abstract def react(fun: (T) => (Update[T]) => Unit)(implicit tx: T): Disposable[T]

    Registers a live observer with this observable.

    Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type A, and the method generates an opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

    Definition Classes
    Observable
  9. abstract def redo()(implicit tx: T): Unit

    Throws an exception if !canRedo

  10. abstract def redoName(implicit tx: T): String

    Throws an exception if !canRedo

  11. abstract def undo()(implicit tx: T): Unit

    Throws an exception if !canUndo

  12. abstract def undoName(implicit tx: T): String

    Throws an exception if !canUndo

  13. abstract def use[A](block: => A)(implicit tx: T): A

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ack(): Unit

    A no-op that can be used to acknowledge the presence of the undo manager.

    A no-op that can be used to acknowledge the presence of the undo manager.

    This is useful to avoid warnings about an unused undo manager argument, when the code proceeds to call undo manager agnostic implementations.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def reactNow(fun: (T) => (Update[T]) => Unit)(implicit tx: T): Disposable[T]
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Observable[T, Update[T]]

Inherited from Disposable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped