WordInsertAction

class WordInsertAction(scheme: () -> WordScheme = { WordSettings.default.currentScheme }) : DataInsertAction(source)

Inserts random words.

Constructors

Link copied to clipboard
constructor(scheme: () -> WordScheme = { WordSettings.default.currentScheme })

Types

Link copied to clipboard
class ArrayAction(arrayScheme: () -> ArrayScheme = { ArraySettings.default.currentScheme }, scheme: () -> WordScheme = { WordSettings.default.currentScheme }) : DataInsertArrayAction

Inserts an array-like string of words.

Link copied to clipboard
class RepeatAction(scheme: () -> WordScheme = { WordSettings.default.currentScheme }) : DataInsertRepeatAction

Inserts repeated random words.

Link copied to clipboard
class RepeatArrayAction(arrayScheme: () -> ArrayScheme = { ArraySettings.default.currentScheme }, scheme: () -> WordScheme = { WordSettings.default.currentScheme }) : DataInsertRepeatArrayAction

Inserts repeated array-like strings of words.

Properties

Link copied to clipboard
open override val name: String

The name of the action to display.

Link copied to clipboard
var random: Random

The random generator used to generate random values.

Functions

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.

Link copied to clipboard
open fun addSynonym(@NotNull p0: @NotNull Supplier<@Nls String>)
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)
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)
Link copied to clipboard
open fun beforeActionPerformedUpdate(@NotNull p0: @NotNull AnActionEvent)
Link copied to clipboard
@ApiStatus.Internal
open fun copyActionTextOverride(@NotNull p0: @NotNull String, @NotNull p1: @NotNull String, p2: String)
Link copied to clipboard
fun copyFrom(@NotNull p0: @NotNull AnAction)
Link copied to clipboard
fun copyShortcutFrom(@NotNull p0: @NotNull AnAction)
Link copied to clipboard
open fun displayTextInToolbar(): Boolean
Link copied to clipboard
fun generateString(): String

Generates a random datum.

Link copied to clipboard
open override fun generateStrings(count: Int): List<String>

Returns random words from the dictionaries in settings.

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.

Link copied to clipboard
fun generateStringTimely(): String

Generates a random datum, or throws an exception if it takes longer than GENERATOR_TIMEOUT milliseconds.

Link copied to clipboard
@NotNull
open override fun getActionUpdateThread(): @NotNull ActionUpdateThread
Link copied to clipboard
@NotNull
fun getShortcutSet(): @NotNull ShortcutSet
Link copied to clipboard
@NotNull
open fun getSynonyms(): @NotNull MutableList<Supplier<@Nls String>>
Link copied to clipboard
@NotNull
fun getTemplatePresentation(): @NotNull Presentation
Link copied to clipboard
@Nullable
open fun getTemplateText(): @Nullable String?
Link copied to clipboard
open fun isDefaultIcon(): Boolean
Link copied to clipboard
open override fun isDumbAware(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isInInjectedContext(): Boolean
Link copied to clipboard
open fun isTransparentUpdate(): Boolean
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?)
Link copied to clipboard
open fun setDefaultIcon(p0: Boolean)
Link copied to clipboard
open fun setInjectedContext(p0: Boolean)
Link copied to clipboard
open fun startInTransaction(): Boolean
Link copied to clipboard
@Nls
open override fun toString(): @Nls String
Link copied to clipboard
fun unregisterCustomShortcutSet(@NotNull p0: @NotNull JComponent)
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.

Link copied to clipboard
open fun useSmallerFontForTextInToolbar(): Boolean