intellij-randomness / com.fwdekker.randomness / DataInsertArrayAction

DataInsertArrayAction

abstract class DataInsertArrayAction : DataInsertAction

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

Parameters

arrayScheme - the scheme to use for generating arrays

dataInsertAction - the action to generate data with

icon - the icon to display with the action

Constructors

<init>

DataInsertArrayAction(arrayScheme: ArrayScheme, dataInsertAction: DataInsertAction, icon: Icon = RandomnessIcons.Data.Array)

Inserts randomly generated arrays 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 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

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of decimals.

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of integers.

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of strings.

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of UUIDs.

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of words.

DummyInsertArrayAction

class DummyInsertArrayAction : DataInsertArrayAction

Inserts an array of dummy values.