public void addSyntaxActions(Keymap map,String prefix){
  Pattern splitter=CONFIG.getValueSeparator(prefix);
  Configuration actionsConf=CONFIG.subConfig(prefix,"Action.");
  for (  String actionName : actionsConf.stringPropertyNames()) {
    String[] values=splitter.split(actionsConf.getProperty(actionName));
    String actionClass=values[0];
    SyntaxAction action=editorActions.get(actionClass);
    if (action == null) {
      action=createAction(actionClass);
      action.config(CONFIG,prefix,actionName);
    }
    String keyStrokeString=values[1];
    KeyStroke ks=KeyStroke.getKeyStroke(keyStrokeString);
    if (ks == null) {
      throw new IllegalArgumentException("Invalid KeyStroke: " + keyStrokeString);
    }
    TextAction ta=action.getAction(actionName);
    if (ta == null) {
      throw new IllegalArgumentException("Invalid ActionName: " + actionName);
    }
    map.addActionForKeyStroke(ks,ta);
  }
}

public void addSyntaxActions ( Keymap map , String prefix ) { Pattern splitter = CONFIG . getValueSeparator ( prefix ) ; Configuration actionsConf = CONFIG . subConfig ( prefix , "Action." ) ; for ( String actionName : actionsConf . stringPropertyNames ( ) ) { String [ ] values = splitter . split ( actionsConf . getProperty ( actionName ) ) ; String actionClass = values [ 0 ] ; SyntaxAction action = editorActions . get ( actionClass ) ; if ( action == null ) { action = createAction ( actionClass ) ; action . config ( CONFIG , prefix , actionName ) ; } String keyStrokeString = values [ 1 ] ; KeyStroke ks = KeyStroke . getKeyStroke ( keyStrokeString ) ; if ( ks == null ) { throw new IllegalArgumentException ( "Invalid KeyStroke: " + keyStrokeString ) ; } TextAction ta = action . getAction ( actionName ) ; if ( ta == null ) { throw new IllegalArgumentException ( "Invalid ActionName: " + actionName ) ; } map . addActionForKeyStroke ( ks , ta ) ; } }
add keyboard actions to this control using the configuration we have
