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

duplicateScheme

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

Called when a user wants to duplicate a scheme.

Parameters

scheme - the scheme to duplicate; it is assumed that this is the currently-selected scheme

newName - the name to be applied to the duplicate