reload

fun reload(changedScheme: Scheme? = null)(source)

Notifies the tree that external changes have been made to currentTemplateList, and resynchronizes the tree's model with the template list.

If changedScheme is not null, then only the part of the model that includes the changedScheme is resynchronized. Otherwise, if changedScheme is null, the entire model is resynchronized.

This is a wrapper around TemplateJTreeModel.fireNodeStructureChanged that additionally tries to retain the current selection and expansion state. Any new templates that have been added will initially be expanded.

See also