code: public void saveToolbarVisibility(final boolean visible) {
  
          CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
               */
              @Override
              public void execute() {
  
                  CmsCoreProvider.getService().setToolbarVisible(visible, this);
              }
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
               */
              @Override
              protected void onResponse(Void result) {
  
                  //nothing to do
              }
          };
          action.execute();
      }
docs: Writes the tool-bar visibility into the session cache.<p>
  
  @param visible <code>true</code> if the tool-bar is visible