intellij-randomness / com.fwdekker.randomness / SchemesPanel / SchemeActions

SchemeActions

inner class SchemeActions<T : Scheme<T>> : AbstractSchemeActions<T>

The actions that can be performed with this panel.

Constructors

<init>

SchemeActions()

The actions that can be performed with this panel.

Functions

duplicateScheme

fun duplicateScheme(scheme: T, newName: String): Unit

Called when a user wants to duplicate a scheme.

getSchemeType

fun getSchemeType(): Class<T>

Returns the type of scheme actions apply to.

onSchemeChanged

fun onSchemeChanged(scheme: T?): Unit

Called when the user changes the scheme using the combo box.

renameScheme

fun renameScheme(scheme: T, newName: String): Unit

Called when the user renames a scheme.

resetScheme

fun resetScheme(scheme: T): Unit

Called when a user opts to reset a scheme to its defaults.