Package org.omegat.gui.shortcuts
Class PropertiesShortcuts
- java.lang.Object
-
- org.omegat.gui.shortcuts.PropertiesShortcuts
-
public class PropertiesShortcuts extends java.lang.Object
ThePropertiesShortcuts
class represents a persistent set of shortcut.
-
-
Constructor Summary
Constructors Constructor Description PropertiesShortcuts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindKeyStrokes(javax.swing.InputMap inputMap, java.lang.String... keys)
void
bindKeyStrokes(javax.swing.JMenuBar menu)
void
bindKeyStrokes(javax.swing.JMenuItem item)
static PropertiesShortcuts
getEditorShortcuts()
javax.swing.KeyStroke
getKeyStroke(java.lang.String key)
static PropertiesShortcuts
getMainMenuShortcuts()
boolean
isEmpty()
void
loadFromClasspath(java.lang.String propertiesFile)
void
loadFromFile(java.io.File file)
-
-
-
Method Detail
-
getMainMenuShortcuts
public static PropertiesShortcuts getMainMenuShortcuts()
-
getEditorShortcuts
public static PropertiesShortcuts getEditorShortcuts()
-
loadFromClasspath
public void loadFromClasspath(java.lang.String propertiesFile) throws java.io.IOException
- Throws:
java.io.IOException
-
loadFromFile
public void loadFromFile(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
getKeyStroke
public javax.swing.KeyStroke getKeyStroke(java.lang.String key)
-
bindKeyStrokes
public void bindKeyStrokes(javax.swing.JMenuBar menu)
-
bindKeyStrokes
public void bindKeyStrokes(javax.swing.JMenuItem item)
-
bindKeyStrokes
public void bindKeyStrokes(javax.swing.InputMap inputMap, java.lang.String... keys)
-
isEmpty
public boolean isEmpty()
-
-