public void addToolbarComponent ( BaseComponent component ) { if ( tbarContainer == null ) { tbarContainer = new ToolbarContainer ( ) ; shell . addToolbarComponent ( tbarContainer ) ; registerComponent ( tbarContainer ) ; } tbarContainer . addChild ( component ) ; }
Adds the specified component to the toolbar container . The component is registered to this container and will visible only when the container is active .