code: public void detach(AbstractButton button) {
  		if (getDefaultButtonManager().isAttachedTo(button)) {
  			getDefaultButtonManager().detach(button);
  			onButtonDetached();
  		}
  	}
docs: Detach the button from the {@link CommandFaceButtonManager}.
  
  @param button the button to detach.