java.lang.Object
org.jedit.keymap.KeymapManagerImpl
- All Implemented Interfaces:
KeymapManager
The default keymap manager implementation.
- Since:
- jEdit 5.0
- Author:
- Matthieu Casanova
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jedit.keymap.KeymapManager
KeymapManager.State
-
Field Summary
Fields inherited from interface org.jedit.keymap.KeymapManager
DEFAULT_KEYMAP_NAME
-
Constructor Summary
ConstructorDescriptionKeymapManagerImpl
(IPropertyManager propertyManager, File systemKeymapFolder, File userKeymapFolder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
copyKeymap
(String name, String newName) Copy the keymap to another onevoid
deleteUserKeymap
(String name) Delete a user keymap.Returns the current keymap.Returns the keymap with that name.getKeymapState
(String name) Returns the state of the keymapvoid
reload()
void
resetKeymap
(String name) Reset the keymap to it's original state if it was a modified system keymap
-
Constructor Details
-
KeymapManagerImpl
public KeymapManagerImpl(IPropertyManager propertyManager, File systemKeymapFolder, File userKeymapFolder)
-
-
Method Details
-
getKeymap
Description copied from interface:KeymapManager
Returns the current keymap.- Specified by:
getKeymap
in interfaceKeymapManager
- Returns:
- the current keymap
-
getKeymapNames
- Specified by:
getKeymapNames
in interfaceKeymapManager
-
getKeymap
Description copied from interface:KeymapManager
Returns the keymap with that name.- Specified by:
getKeymap
in interfaceKeymapManager
- Parameters:
name
- the keymap name- Returns:
- the user keymap of that name, if it exists, or the system keymap if it doesn't.
If none exists
null
is returned
-
getKeymapState
Description copied from interface:KeymapManager
Returns the state of the keymap- Specified by:
getKeymapState
in interfaceKeymapManager
- Parameters:
name
- the name of the keymap- Returns:
- a state.
-
resetKeymap
Description copied from interface:KeymapManager
Reset the keymap to it's original state if it was a modified system keymap- Specified by:
resetKeymap
in interfaceKeymapManager
- Parameters:
name
- the keymap name
-
deleteUserKeymap
Description copied from interface:KeymapManager
Delete a user keymap.- Specified by:
deleteUserKeymap
in interfaceKeymapManager
- Parameters:
name
- the keymap name
-
copyKeymap
Description copied from interface:KeymapManager
Copy the keymap to another one- Specified by:
copyKeymap
in interfaceKeymapManager
- Parameters:
name
- the original keymapnewName
- the new keymap
-
reload
public void reload()- Specified by:
reload
in interfaceKeymapManager
-