public void addActionWithAccelleratorKey(GPAction action){
  if (action != null) {
    for (    KeyStroke ks : GPAction.getAllKeyStrokes(action.getID())) {
      addAction(action,ks);
    }
  }
}

public void addActionWithAccelleratorKey ( GPAction action ) { if ( action != null ) { for ( KeyStroke ks : GPAction . getAllKeyStrokes ( action . getID ( ) ) ) { addAction ( action , ks ) ; } } }
adds an action to the object and makes it active
