intellij-randomness / com.fwdekker.randomness / DataInsertRepeatAction

DataInsertRepeatAction

abstract class DataInsertRepeatAction : DataInsertAction

Inserts the same randomly generated string at the event's editor's carets.

Parameters

dataInsertAction - the action to generate data with

icon - the icon to display with the action

Constructors

<init>

DataInsertRepeatAction(dataInsertAction: DataInsertAction, icon: Icon = RandomnessIcons.Data.Array)

Inserts the same randomly generated string 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 datum 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

DummyInsertRepeatAction

class DummyInsertRepeatAction : DataInsertRepeatAction

Inserts a repeated array of dummy values.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random decimals.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random integers.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random strings.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random UUIDs.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random words.