intellij-randomness / com.fwdekker.randomness.string / StringInsertAction

StringInsertAction

class StringInsertAction : DataInsertAction

Inserts random alphanumerical strings.

Parameters

scheme - the scheme to use for generating strings

Types

ArrayAction

class ArrayAction : DataInsertArrayAction

Inserts an array-like string of strings.

RepeatAction

class RepeatAction : DataInsertRepeatAction

Inserts repeated random strings.

RepeatArrayAction

class RepeatArrayAction : DataInsertRepeatArrayAction

Inserts repeated array-like strings of strings.

Constructors

<init>

StringInsertAction(scheme: StringScheme = StringSettings.default.currentScheme)

Inserts random alphanumerical strings.

Properties

name

val name: String

The name of the action to display.

Inherited Properties

random

var random: Random

The random generator used to generate random values.

Functions

generateStrings

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

Returns strings of random alphanumerical characters.

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.