intellij-randomness / com.fwdekker.randomness / DataInsertAction

DataInsertAction

abstract class DataInsertAction : AnAction

Inserts a randomly generated string at the positions of the event's editor's carets.

Constructors

<init>

DataInsertAction()

Inserts a randomly generated string at the positions of the event's editor's carets.

Properties

name

abstract val name: String

The name of the action to display.

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.

generateStrings

abstract fun generateStrings(count: Int = 1): List<String>

Generates random data.

update

open fun update(event: AnActionEvent): Unit

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

Inheritors

DataInsertArrayAction

abstract class DataInsertArrayAction : DataInsertAction

Inserts a randomly generated array of strings at the positions of the event's editor's carets.

DecimalInsertAction

class DecimalInsertAction : DataInsertAction

Inserts random decimals.

IntegerInsertAction

class IntegerInsertAction : DataInsertAction

Inserts random integers.

StringInsertAction

class StringInsertAction : DataInsertAction

Inserts random alphanumerical strings.

UuidInsertAction

class UuidInsertAction : DataInsertAction

Inserts random type 4 UUID.

WordInsertAction

class WordInsertAction : DataInsertAction

Inserts random words.