intellij-randomness / com.fwdekker.randomness / DummyInsertAction

DummyInsertAction

class DummyInsertAction : DataInsertAction

Inserts a dummy value.

Mostly for testing and demonstration purposes.

Constructors

<init>

DummyInsertAction(dummyValue: String)

Inserts a dummy value.

Properties

dummyValue

val dummyValue: String

the dummy value that is inserted

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>

Generates 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.