- All Known Implementing Classes:
KeymapManagerImpl
public interface KeymapManager
- Since:
- jEdit 5.0
- Author:
- Matthieu Casanova
-
Nested Class Summary
-
Field Summary
-
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
-
Field Details
-
DEFAULT_KEYMAP_NAME
- See Also:
-
-
Method Details
-
getKeymap
Keymap getKeymap()Returns the current keymap.- Returns:
- the current keymap
-
reload
void reload() -
getKeymapNames
Collection<String> getKeymapNames() -
getKeymap
Returns the keymap with that name.- 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
Returns the state of the keymap- Parameters:
name
- the name of the keymap- Returns:
- a state.
-
resetKeymap
Reset the keymap to it's original state if it was a modified system keymap- Parameters:
name
- the keymap name
-
deleteUserKeymap
Delete a user keymap.- Parameters:
name
- the keymap name
-
copyKeymap
Copy the keymap to another one- Parameters:
name
- the original keymapnewName
- the new keymap
-