TemplateInsertAction

class TemplateInsertAction(val template: Template, val array: Boolean = false, repeat: Boolean = false) : InsertAction(source)

Inserts random strings in the editor using the given template.

Parameters

template

the template to use for inserting data

array

true if and only if an array of values should be inserted

repeat

true if and only if the same value should be inserted at each caret

See also

Constructors

Link copied to clipboard
constructor(template: Template, array: Boolean = false, repeat: Boolean = false)

Types

Link copied to clipboard
inner class ArrayDecoratorConfigurable(arrayDecorator: ArrayDecorator) : Configurable, Disposable

Edits the ArrayDecorator of a template and shows a preview.

Properties

Link copied to clipboard
private val array: Boolean = false
Link copied to clipboard

The configurable to open as soon as the action is performed but before the strings are inserted.

Link copied to clipboard
private val template: Template

Functions

Link copied to clipboard
open override fun generateStrings(count: Int): List<String>

Generates count strings.