code: public String getXmlEditorIncludes() throws JspException {
  
          StringBuffer result = new StringBuffer(1024);
  
          // first include general JQuery JS and UI components
          result.append("<script type=\"text/javascript\" src=\"");
          result.append(CmsWorkplace.getSkinUri()).append("jquery/packed/jquery.js");
          result.append("\"></script>\n");
          result.append("<script type=\"text/javascript\" src=\"");
          result.append(CmsWorkplace.getSkinUri()).append("jquery/packed/jquery.ui.js");
          result.append("\"></script>\n");
  
          // including dialog-helper.js to be used by ADE gallery widgets
          result.append("<script type=\"text/javascript\" src=\"");
          result.append(CmsWorkplace.getSkinUri()).append("components/widgets/dialog-helper.js");
          result.append("\"></script>\n");
  
          // import the JavaScript for JSON helper functions
          result.append("<script type=\"text/javascript\" src=\"");
          result.append(CmsWorkplace.getSkinUri()).append("commons/json2.js");
          result.append("\"></script>\n");
          result.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
          result.append(CmsWorkplace.getSkinUri()).append("jquery/css/ui-ocms/jquery.ui.css");
          result.append("\">\n");
          result.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
          result.append(CmsWorkplace.getSkinUri()).append("jquery/css/ui-ocms/jquery.ui.ocms.css");
          result.append("\">\n");
  
          try {
              // iterate over unique widgets from collector
              Iterator<I_CmsWidget> i = getWidgetCollector().getUniqueWidgets().iterator();
              while (i.hasNext()) {
                  I_CmsWidget widget = i.next();
                  result.append(widget.getDialogIncludes(getCms(), this));
                  result.append("\n");
              }
          } catch (Exception e) {
              showErrorPage(e);
          }
          return result.toString();
      }
docs: Generates the JavaScript includes for the used widgets in the editor form.<p>
  
  @return the JavaScript includes for the used widgets
  @throws JspException if including the error page fails