code: public void hideShowPreviewButton(boolean hide) {
  
          // buttons
          switch (m_mode) {
              case editor:
              case widget:
                  m_galleryDialog.hideShowPreviewButton(hide);
                  break;
              case ade:
              case view:
              case adeView:
              default:
                  break;
          }
      }
docs: Hides or shows the show-preview-button.<p>
  
  @param hide <code>true</code> to hide the button