intellij-randomness / com.fwdekker.randomness / DataGroupAction

DataGroupAction

abstract class DataGroupAction : ActionGroup

A group of actions for a particular type of random data that can be generated.

Parameters

icon - the icon to display with the action

Constructors

<init>

DataGroupAction(icon: Icon = RandomnessIcons.Data.Base)

A group of actions for a particular type of random data that can be generated.

Properties

insertAction

abstract val insertAction: DataInsertAction

The action used to insert single data.

insertArrayAction

abstract val insertArrayAction: DataInsertArrayAction

The action used to insert arrays of data.

insertRepeatAction

abstract val insertRepeatAction: DataInsertRepeatAction

The action used to insert repeated single data.

insertRepeatArrayAction

abstract val insertRepeatArrayAction: DataInsertRepeatArrayAction

The action used to insert repeated arrays of data.

settingsAction

abstract val settingsAction: DataSettingsAction

The action used to edit the generator settings for this data type.

Functions

actionPerformed

open fun actionPerformed(event: AnActionEvent): Unit

Chooses one of the three actions to execute based on the key modifiers in event.

canBePerformed

open fun canBePerformed(context: DataContext): Boolean

Returns true.

getChildren

open fun getChildren(event: AnActionEvent?): Array<AnAction>

Returns the insert action, array insert action, and settings action.

isPopup

open fun isPopup(): Boolean

Returns true.

update

open fun update(event: AnActionEvent): Unit

Sets the title of this action.

Inheritors

DecimalGroupAction

class DecimalGroupAction : DataGroupAction

All actions related to inserting decimals.

IntegerGroupAction

class IntegerGroupAction : DataGroupAction

All actions related to inserting integers.

StringGroupAction

class StringGroupAction : DataGroupAction

All actions related to inserting strings.

UuidGroupAction

class UuidGroupAction : DataGroupAction

All actions related to inserting UUIDs.

WordGroupAction

class WordGroupAction : DataGroupAction

All actions related to inserting words.