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

removeScheme

open fun removeScheme(scheme: T): Unit

Removes the given scheme from the settings.

If the currently-selected scheme is removed, the current selection will change to the default scheme. If there are somehow no more schemes, the default scheme is inserted and selected.

Parameters

scheme - the scheme to remove

Exceptions

IllegalArgumentException - if the default scheme is being removed