code: public void setElementView(CmsElementViewInfo viewInfo, Runnable nextAction) {
  
          if (viewInfo != null) {
              m_elementView = viewInfo;
  
              CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
                  @SuppressWarnings("synthetic-access")
                  @Override
                  public void execute() {
  
                      getContainerpageService().setElementView(m_elementView.getElementViewId(), this);
                  }
  
                  @Override
                  protected void onResponse(Void result) {
  
                      // nothing to do
                  }
              };
              action.execute();
              m_currentEditLevel = -1;
              reinitializeButtons();
              reInitInlineEditing();
              updateGalleryData(true, nextAction);
          }
      }
docs: Sets the element view.<p>
  
  @param viewInfo the element view
  @param nextAction the action to execute after setting the view