TemplateListConfigurable

class TemplateListConfigurable : Configurable, Disposable(source)

Tells IntelliJ how to use a TemplateListEditor to edit a TemplateList in the settings dialog.

Set schemeToSelect before createComponent is invoked to determine which template should be selected when the configurable opens.

This class is separate from TemplateListEditor because that class creates UI components in the constructor. But configurables may be created at any time in the background, so using TemplateListEditor as a configurable would cause unnecessary lag.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The user interface for changing the settings, displayed in IntelliJ's settings window.

Link copied to clipboard
var schemeToSelect: String?

The UUID of the scheme to select after calling createComponent.

Functions

Link copied to clipboard
open override fun apply()

Saves the changes in the settings component to the default settings object, and updates template shortcuts.

Link copied to clipboard
open override fun createComponent(): JComponent

Creates a new editor and returns the root pane of the created editor.

Link copied to clipboard
open override fun dispose()

Non-recursively disposes this configurable's resources.

Link copied to clipboard
open override fun disposeUIResources()

Recursively disposes this configurable's resources.

Link copied to clipboard
open override fun getDisplayName(): String

Returns the name of the configurable as displayed in the settings window.

Link copied to clipboard
open override fun isModified(): Boolean

Returns true if the settings were modified since they were loaded or they are invalid.

Link copied to clipboard
open override fun reset()

Discards unsaved changes in the settings component.