code: void openModelSelectDialog(final CmsEditorContext context, final CmsContentDefinition definition) {
  
          I_CmsModelSelectHandler handler = new I_CmsModelSelectHandler() {
  
              public void onModelSelect(CmsUUID modelStructureId) {
  
                  if (modelStructureId == null) {
                      modelStructureId = CmsUUID.getNullUUID();
                  }
                  openFormEditor(
                      context,
                      definition.getLocale(),
                      definition.getReferenceResourceId().toString(),
                      m_clientId,
                      definition.getNewLink(),
                      modelStructureId,
                      null,
                      null,
                      null,
  
                      null,
                      m_onClose);
              }
          };
          String title = org.opencms.gwt.client.Messages.get().key(
              org.opencms.gwt.client.Messages.GUI_MODEL_SELECT_TITLE_0);
          String message = org.opencms.gwt.client.Messages.get().key(
              org.opencms.gwt.client.Messages.GUI_MODEL_SELECT_MESSAGE_0);
          CmsModelSelectDialog dialog = new CmsModelSelectDialog(handler, definition.getModelInfos(), title, message);
          dialog.center();
      }
docs: Opens the model file select dialog.<p>
  
  @param context the editor context
  @param definition the content definition