intellij-randomness / com.fwdekker.randomness / DataInsertArrayAction

DataInsertArrayAction

abstract class DataInsertArrayAction : DataInsertAction

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

Parameters

arraySettings - the settings to use for generating arrays

dataInsertAction - the action to generate data with

Constructors

<init>

DataInsertArrayAction(arraySettings: ArraySettings, dataInsertAction: DataInsertAction)

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

Inherited Properties

name

abstract val name: String

The name of the action to display.

Functions

generateStrings

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

Generates array-like strings of random data.

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.

Inheritors

DecimalInsertArrayAction

class DecimalInsertArrayAction : DataInsertArrayAction

Inserts an array-like string of decimals.

IntegerInsertArrayAction

class IntegerInsertArrayAction : DataInsertArrayAction

Inserts an array-like string of integers.

StringInsertArrayAction

class StringInsertArrayAction : DataInsertArrayAction

Inserts an array-like string of strings.

UuidInsertArrayAction

class UuidInsertArrayAction : DataInsertArrayAction

Inserts an array-like string of UUIDs.

WordInsertArrayAction

class WordInsertArrayAction : DataInsertArrayAction

Inserts an array-like string of words.