intellij-randomness / com.fwdekker.randomness.word / WordInsertAction

WordInsertAction

class WordInsertAction : DataInsertAction

Inserts random words.

Parameters

settings - the settings to use for generating words

See Also

WordInsertArrayAction

WordSettings

Constructors

<init>

WordInsertAction(settings: WordSettings = WordSettings.default)

Inserts random words.

Properties

name

val name: String

The name of the action to display.

Functions

generateStrings

fun generateStrings(count: Int): List<String>

Returns random words from the dictionaries in settings.

Inherited Functions

actionPerformed

open fun actionPerformed(event: AnActionEvent): Unit

Inserts the data generated by generateStrings at the caret(s) in the editor; one datum for each caret.

generateString

fun generateString(): String

Generates a random datum.

update

open fun update(event: AnActionEvent): Unit

Sets the title of this action and disables this action if no editor is currently opened.