code: public void openInlineEditor(
          final CmsEditorContext context,
          CmsUUID elementId,
          String locale,
          final I_CmsInlineFormParent panel,
          final String mainLocale,
          long loadTime,
          I_CmsSimpleCallback<Boolean> onClose) {
  
          initEventPreviewHandler();
          final String entityId = CmsContentDefinition.uuidToEntityId(elementId, locale);
          m_locale = locale;
          m_onClose = onClose;
          CmsCoreProvider.get().lock(elementId, loadTime, new I_CmsSimpleCallback<Boolean>() {
  
              public void execute(Boolean arg) {
  
                  if (arg.booleanValue()) {
                      loadInitialDefinition(
                          entityId,
                          null,
                          null,
                          null,
                          null,
                          mainLocale,
                          null,
                          Collections.emptyMap(),
                          new I_CmsSimpleCallback<CmsContentDefinition>() {
  
                              public void execute(CmsContentDefinition contentDefinition) {
  
                                  initEditor(context, contentDefinition, panel, true, mainLocale);
                              }
                          });
                  } else {
                      showLockedResourceMessage();
                  }
              }
          });
      }
docs: Renders the in-line editor for the given element.<p>
  
  @param context the editor context
  @param elementId the element id
  @param locale the content locale
  @param panel the element panel
  @param mainLocale the main language to copy in case the element language node does not exist yet
  @param loadTime the time when the requested resource was loaded
  @param onClose the command to execute on close