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
Functions
Link copied to clipboard
Registers the actions for all Templates in the user's Settings using actionManager.
Link copied to clipboard
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.