TemplateActionLoader

open class TemplateActionLoader(getTemplates: () -> List<Template> = { Settings.DEFAULT.templates }) : DynamicActionConfigurationCustomizer(source)

Registers, replaces, and unregisters actions for the user's Templates so that they can be inserted using shortcuts.

Parameters

getTemplates

shorthand to return all the user's stored Templates

Inheritors

Constructors

Link copied to clipboard
constructor(getTemplates: () -> List<Template> = { Settings.DEFAULT.templates })

Functions

Link copied to clipboard
open override fun registerActions(actionManager: ActionManager)

Registers the actions for all Templates in the user's Settings using actionManager.

Link copied to clipboard
open override fun unregisterActions(actionManager: ActionManager)

Unregisters the actions of all Templates in the user's Settings using actionManager.

Link copied to clipboard
fun updateActions(oldList: List<Template>, newList: List<Template>, actionManager: ActionManager = ActionManager.getInstance())

Registers, unregisters, and updates actions as appropriate for a transition from oldList to newList using actionManager.