public final class KeymapSchemeManager extends AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme> implements SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<Keymap> |
FILTER |
mySchemesPanel
Modifier and Type | Method and Description |
---|---|
boolean |
canDeleteScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
boolean |
canDuplicateScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
boolean |
canRenameScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
boolean |
canResetScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
boolean |
containsScheme(java.lang.String name,
boolean projectScheme) |
boolean |
differsFromDefault(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
protected void |
duplicateScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme parent,
java.lang.String name)
Creates a copy of the scheme with a different name.
|
protected java.lang.Class<com.intellij.openapi.keymap.impl.ui.KeymapScheme> |
getSchemeType() |
boolean |
isProjectScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
protected void |
onSchemeChanged(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
Make necessary configurable updates when another scheme has been selected.
|
void |
removeScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme) |
protected void |
renameScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme,
java.lang.String name)
Change scheme's name to the new one.
|
protected void |
resetScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
Reset scheme's settings to their default values (presets).
|
addAdditionalActions, copyToIDE, copyToProject, exportScheme, exportScheme, getActions, getCurrentScheme, getModel, getSchemeImportersNames, getSchemesPanel, importScheme
public static final java.util.function.Predicate<Keymap> FILTER
protected java.lang.Class<com.intellij.openapi.keymap.impl.ui.KeymapScheme> getSchemeType()
getSchemeType
in class AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
protected void onSchemeChanged(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
AbstractSchemeActions
onSchemeChanged
in class AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The new current scheme.public boolean isProjectScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
isProjectScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.false
if project schemes are not supported.public boolean canDuplicateScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
canDuplicateScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.protected void duplicateScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme parent, java.lang.String name)
AbstractSchemeActions
duplicateScheme
in class AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
parent
- The scheme to copy.name
- New name.public boolean canDeleteScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
canDeleteScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.public void removeScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
removeScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
public boolean canRenameScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
canRenameScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.protected void renameScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme, java.lang.String name)
AbstractSchemeActions
renameScheme
in class AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to rename.name
- New scheme name.public boolean containsScheme(java.lang.String name, boolean projectScheme)
containsScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
name
- The scheme to check.projectScheme
- Level of the scheme to check. If schemes model does not support project level schemes
then the parameter is always equal to false.public boolean differsFromDefault(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
differsFromDefault
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.SchemesModel.canResetScheme(Scheme)
returns true
.public boolean canResetScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
canResetScheme
in interface SchemesModel<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to check.SchemesModel.differsFromDefault(Scheme)
protected void resetScheme(com.intellij.openapi.keymap.impl.ui.KeymapScheme scheme)
AbstractSchemeActions
resetScheme
in class AbstractSchemeActions<com.intellij.openapi.keymap.impl.ui.KeymapScheme>
scheme
- The scheme to reset.