TemplateRemoved

data class TemplateRemoved(val path: List<Int>, val names: List<String>, val template: Topology.ChildTemplate) : TopologyChange

The group lost its template. Every child the app attached to it is closed, with its history, and does not come back if the template does.

Constructors

Link copied to clipboard
constructor(path: List<Int>, names: List<String>, template: Topology.ChildTemplate)

Properties

Link copied to clipboard
open override val names: List<String>

the names along path, starting with the root's, so it always holds one more entry than path. None is empty.

Link copied to clipboard
open override val path: List<Int>

the child indices from the root to the node this change concerns; [] only for RootRenamed. Every index is >= 0.

Link copied to clipboard

What LocalHeddle.apply does to fairness history when it lands this change: SaveEffect.LOST for a change that costs a group its history, the one to warn about before saving; SaveEffect.KEPT for one that costs nobody any; and SaveEffect.NEW_TREE for the one apply throws on, which an editor refuses to save rather than warns about.

Link copied to clipboard