Class ToolbarPreferences.ActionParser
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.ToolbarPreferences.ActionParser
-
- Enclosing class:
- ToolbarPreferences
public static class ToolbarPreferences.ActionParser extends java.lang.Object
Parse actions from a name
-
-
Constructor Summary
Constructors Constructor Description ActionParser(java.util.Map<java.lang.String,javax.swing.Action> actions)
Constructs a newActionParser
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
escape(java.lang.String s)
ToolbarPreferences.ActionDefinition
loadAction(java.lang.String actionName)
Loads the action definition from its toolbar name.private java.lang.String
readTillChar(char ch1, char ch2)
java.lang.String
saveAction(ToolbarPreferences.ActionDefinition action)
private void
skip(char ch)
-
-
-
Constructor Detail
-
ActionParser
public ActionParser(java.util.Map<java.lang.String,javax.swing.Action> actions)
Constructs a newActionParser
.- Parameters:
actions
- actions map - can be null
-
-
Method Detail
-
readTillChar
private java.lang.String readTillChar(char ch1, char ch2)
-
skip
private void skip(char ch)
-
loadAction
public ToolbarPreferences.ActionDefinition loadAction(java.lang.String actionName)
Loads the action definition from its toolbar name.- Parameters:
actionName
- action toolbar name- Returns:
- action definition or null
-
escape
private void escape(java.lang.String s)
-
saveAction
public java.lang.String saveAction(ToolbarPreferences.ActionDefinition action)
-
-