intellij-randomness / com.fwdekker.randomness / DataInsertRepeatArrayAction

DataInsertRepeatArrayAction

abstract class DataInsertRepeatArrayAction : DataInsertAction

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

Parameters

dataInsertArrayAction - the action to generate data with

icon - the icon to display with the action

Constructors

<init>

DataInsertRepeatArrayAction(dataInsertArrayAction: DataInsertArrayAction, icon: Icon = RandomnessIcons.Data.Array)

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

Inherited Properties

name

abstract val name: String

The name of the action to display.

random

var random: Random

The random generator used to generate random values.

Functions

generateStrings

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

Generates a random array-like string of random data and repeats it count times.

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

DummyInsertRepeatArrayAction

class DummyInsertRepeatArrayAction : DataInsertRepeatArrayAction

Inserts a repeated array of dummy values.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of decimals.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of integers.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of strings.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of UUIDs.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of words.