code: boolean setEditMode(CmsMessageBundleEditorTypes.EditMode newMode) {
  
          CmsMessageBundleEditorTypes.EditMode oldMode = m_model.getEditMode();
          boolean success = false;
          if (!newMode.equals(oldMode)) {
              Map<Object, Object> filters = getFilters();
              m_table.clearFilters();
              if (m_model.setEditMode(newMode)) {
                  m_table.setTableFieldFactory(m_fieldFactories.get(newMode));
                  m_table.setCellStyleGenerator(m_styleGenerators.get(newMode));
                  adjustOptionsColumn(oldMode, newMode);
                  m_options.updateShownOptions(m_model.hasMasterMode(), m_model.canAddKeys());
                  m_options.setEditMode(newMode);
                  success = true;
              } else {
                  Notification.show(m_messages.key(Messages.ERR_MODE_CHANGE_NOT_POSSIBLE_0), Type.ERROR_MESSAGE);
  
              }
              setFilters(filters);
              adjustFocus();
          }
          return success;
  
      }
docs: Set the edit mode.
  @param newMode the edit mode to set.
  @return Flag, indicating if mode switching was successful.