Class KeymapManagerImpl

  • All Implemented Interfaces:
    KeymapManager

    public class KeymapManagerImpl
    extends java.lang.Object
    implements KeymapManager
    The default keymap manager implementation.
    Since:
    jEdit 5.0
    • Constructor Detail

      • KeymapManagerImpl

        public KeymapManagerImpl​(IPropertyManager propertyManager,
                                 java.io.File systemKeymapFolder,
                                 java.io.File userKeymapFolder)
    • Method Detail

      • getKeymapNames

        public java.util.Collection<java.lang.String> getKeymapNames()
        Specified by:
        getKeymapNames in interface KeymapManager
      • getKeymap

        public Keymap getKeymap​(java.lang.String name)
        Description copied from interface: KeymapManager
        Returns the keymap with that name.
        Specified by:
        getKeymap in interface KeymapManager
        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
      • resetKeymap

        public void resetKeymap​(java.lang.String name)
        Description copied from interface: KeymapManager
        Reset the keymap to it's original state if it was a modified system keymap
        Specified by:
        resetKeymap in interface KeymapManager
        Parameters:
        name - the keymap name
      • deleteUserKeymap

        public void deleteUserKeymap​(java.lang.String name)
        Description copied from interface: KeymapManager
        Delete a user keymap.
        Specified by:
        deleteUserKeymap in interface KeymapManager
        Parameters:
        name - the keymap name
      • copyKeymap

        public boolean copyKeymap​(java.lang.String name,
                                  java.lang.String newName)
        Description copied from interface: KeymapManager
        Copy the keymap to another one
        Specified by:
        copyKeymap in interface KeymapManager
        Parameters:
        name - the original keymap
        newName - the new keymap