public static void registerToolbarAction(SelectionDependentAction action){
  toolbarActions.add(action);
}

public static void registerToolbarAction ( SelectionDependentAction action ) { toolbarActions . add ( action ) ; }
this registers the given action for the toolbar ;
