DataInsertArrayAction

abstract class DataInsertArrayAction(arrayScheme: ArrayScheme, dataInsertAction: DataInsertAction, icon: Icon) : 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

DataInsertArrayAction
Link copied to clipboard
fun DataInsertArrayAction(arrayScheme: ArrayScheme, dataInsertAction: DataInsertAction, icon: Icon = RandomnessIcons.Data.Array)
the scheme to use for generating arrays

Functions

actionPerformed
Link copied to clipboard
open override fun actionPerformed(event: AnActionEvent)
Inserts the data generated by generateStrings at the caret(s) in the editor; one datum for each caret.
addSynonym
Link copied to clipboard
open fun addSynonym(@NotNull() p0: @NotNull() Supplier<@Nls() String>)
addTextOverride
Link copied to clipboard
open fun addTextOverride(@NotNull() p0: @NotNull() String, @NotNull() p1: @NotNull() Supplier<String>)
open fun addTextOverride(@NotNull() p0: @NotNull() String, @NotNull() p1: @NotNull() String)
applyTextOverride
Link copied to clipboard
@ApiStatus.Internal()
open fun applyTextOverride(@NotNull() p0: @NotNull() AnActionEvent)
@ApiStatus.Internal()
open fun applyTextOverride(@NotNull() p0: @NotNull() String, @NotNull() p1: @NotNull() Presentation)
beforeActionPerformedUpdate
Link copied to clipboard
open fun beforeActionPerformedUpdate(@NotNull() p0: @NotNull() AnActionEvent)
copyActionTextOverride
Link copied to clipboard
@ApiStatus.Internal()
open fun copyActionTextOverride(@NotNull() p0: @NotNull() String, @NotNull() p1: @NotNull() String, p2: String)
copyActionTextOverrides
Link copied to clipboard
@ApiStatus.Internal()
open fun copyActionTextOverrides(p0: AnAction)
copyFrom
Link copied to clipboard
fun copyFrom(@NotNull() p0: @NotNull() AnAction)
copyShortcutFrom
Link copied to clipboard
fun copyShortcutFrom(@NotNull() p0: @NotNull() AnAction)
createTemplatePresentation
Link copied to clipboard
@NotNull()
open fun createTemplatePresentation(): @NotNull() Presentation
displayTextInToolbar
Link copied to clipboard
open fun displayTextInToolbar(): Boolean
generateString
Link copied to clipboard
fun generateString(): String
Generates a random datum.
generateStrings
Link copied to clipboard
open override fun generateStrings(count: Int): List<String>
Generates array-like strings of random data.
generateStringsTimely
Link copied to clipboard
fun generateStringsTimely(count: Int = 1): List<String>
Generates random data, or throws an exception if it takes longer than GENERATOR_TIMEOUT milliseconds.
generateStringTimely
Link copied to clipboard
fun generateStringTimely(): String
Generates a random datum, or throws an exception if it takes longer than GENERATOR_TIMEOUT milliseconds.
getShortcutSet
Link copied to clipboard
@NotNull()
fun getShortcutSet(): @NotNull() ShortcutSet
getSynonyms
Link copied to clipboard
@NotNull()
open fun getSynonyms(): @NotNull() MutableList<Supplier<@Nls() String>>
getTemplatePresentation
Link copied to clipboard
@NotNull()
fun getTemplatePresentation(): @NotNull() Presentation
getTemplateText
Link copied to clipboard
@Nullable()
open fun getTemplateText(): @Nullable() String?
isDefaultIcon
Link copied to clipboard
open fun isDefaultIcon(): Boolean
isDumbAware
Link copied to clipboard
@Contract(pure = true)
open fun isDumbAware(): Boolean
isEnabledInModalContext
Link copied to clipboard
fun isEnabledInModalContext(): Boolean
isInInjectedContext
Link copied to clipboard
open fun isInInjectedContext(): Boolean
isTransparentUpdate
Link copied to clipboard
@ApiStatus.ScheduledForRemoval(inVersion = 2021.3)
open fun isTransparentUpdate(): Boolean
registerCustomShortcutSet
Link copied to clipboard
fun registerCustomShortcutSet(@NotNull() p0: @NotNull() ShortcutSet, @Nullable() p1: @Nullable() JComponent?)
fun registerCustomShortcutSet(@Nullable() p0: @Nullable() JComponent?, @Nullable() p1: @Nullable() Disposable?)
fun registerCustomShortcutSet(@NotNull() p0: @NotNull() ShortcutSet, @Nullable() p1: @Nullable() JComponent?, @Nullable() p2: @Nullable() Disposable?)
fun registerCustomShortcutSet(p0: Int, p1: Int, @Nullable() p2: @Nullable() JComponent?)
setDefaultIcon
Link copied to clipboard
open fun setDefaultIcon(p0: Boolean)
setEnabledInModalContext
Link copied to clipboard
fun setEnabledInModalContext(p0: Boolean)
setInjectedContext
Link copied to clipboard
open fun setInjectedContext(p0: Boolean)
setShortcutSet
Link copied to clipboard
open fun setShortcutSet(@NotNull() p0: @NotNull() ShortcutSet)
startInTransaction
Link copied to clipboard
open fun startInTransaction(): Boolean
toString
Link copied to clipboard
@Nls()
open override fun toString(): @Nls() String
unregisterCustomShortcutSet
Link copied to clipboard
fun unregisterCustomShortcutSet(@NotNull() p0: @NotNull() JComponent)
update
Link copied to clipboard
open override fun update(event: AnActionEvent)
Sets the title of this action and disables this action if no editor is currently opened.
useSmallerFontForTextInToolbar
Link copied to clipboard
open fun useSmallerFontForTextInToolbar(): Boolean

Properties

name
Link copied to clipboard
abstract val name: String
The name of the action to display.
random
Link copied to clipboard
var random: Random
The random generator used to generate random values.

Inheritors

DummyInsertArrayAction
Link copied to clipboard
DecimalInsertAction
Link copied to clipboard
IntegerInsertAction
Link copied to clipboard
StringInsertAction
Link copied to clipboard
UuidInsertAction
Link copied to clipboard
WordInsertAction
Link copied to clipboard

Sources

jvm source
Link copied to clipboard