/** * Adds a given tool to this controller. * <p> * This method is called by the dependency manager. * </p> * * @param aTool * the tool to add, cannot be <code>null</code>. */ public void addTool( final Tool<?> aTool ) { if ( this.tools.putIfAbsent( aTool.getName(), aTool ) == null ) { this.actionManager.add( new RunToolAction( this, aTool.getName(), aTool.getCategory() ) ); } }