gpt4 book ai didi

org.eclipse.pde.internal.core.XMLPrintHandler.printBeginElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 18:16:40 25 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.pde.internal.core.XMLPrintHandler.printBeginElement()方法的一些代码示例,展示了XMLPrintHandler.printBeginElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPrintHandler.printBeginElement()方法的具体详情如下:
包路径:org.eclipse.pde.internal.core.XMLPrintHandler
类名称:XMLPrintHandler
方法名:printBeginElement

XMLPrintHandler.printBeginElement介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

public void write(String indent, PrintWriter writer) {
  
  String newIndent = indent + XMLPrintHandler.XML_INDENT;
  
  try {
    // Start element
    XMLPrintHandler.printBeginElement(writer, ELEMENT_DESCRIPTION,
        indent, false);
    // Print contents
    if ((fContent != null) &&
        (fContent.length() > 0)) {
      writer.write(newIndent
          + PDETextHelper.translateWriteText(fContent.trim(),
              TAG_EXCEPTIONS, SUBSTITUTE_CHARS) + "\n"); //$NON-NLS-1$
    }
    // End element
    XMLPrintHandler.printEndElement(writer, ELEMENT_DESCRIPTION, indent);
  } catch (IOException e) {
    // Suppress
    //e.printStackTrace();
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

public void write(String indent, PrintWriter writer) {
  String newIndent = indent + XMLPrintHandler.XML_INDENT;
  
  try {
    // Start element
    XMLPrintHandler.printBeginElement(writer, ELEMENT_ONCOMPLETION,
        indent, false);
    // Print contents
    if ((fContent != null) &&
        (fContent.length() > 0)) {
      writer.write(newIndent
          + PDETextHelper.translateWriteText(fContent.trim(),
              TAG_EXCEPTIONS, SUBSTITUTE_CHARS) + "\n");				 //$NON-NLS-1$
    }
    // End element
    XMLPrintHandler.printEndElement(writer, ELEMENT_ONCOMPLETION, indent);
  } catch (IOException e) {
    // Suppress
    //e.printStackTrace();
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

public void write(String indent, PrintWriter writer) {
  StringBuffer buffer = new StringBuffer();
  String newIndent = indent + XMLPrintHandler.XML_INDENT;
  try {
    // Print repeated-subitem element
    buffer.append(ELEMENT_REPEATED_SUBITEM);
    // Print values attribute
    if ((fValues != null) && 
        (fValues.length() > 0)) {
      // Write as is. Do not translate
      buffer.append(XMLPrintHandler.wrapAttribute(
          ATTRIBUTE_VALUES, fValues));
    }
    // Start element
    XMLPrintHandler.printBeginElement(writer, buffer.toString(),
        indent, false);
    // Print subitem
    if (fSubItem != null) {
      fSubItem.write(newIndent, writer);
    }
    // End element
    XMLPrintHandler.printEndElement(writer, ELEMENT_REPEATED_SUBITEM, indent);
    
  } catch (IOException e) {
    // Suppress
    //e.printStackTrace();
  }                 
  
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

printBeginElement(xmlWriter, tempElementString.toString(), indent, length == 0);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

printBeginElement(xmlWriter,tempElementString.toString(), indent, length == 0);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ua.core

@Override
public void write(String indent, PrintWriter writer) {
  StringBuilder buffer = new StringBuilder();
  try {
    // Assemble start element
    buffer.append(getElement());
    // Assemble attributes
    writeAttributes(buffer);
    // Print start element and attributes
    XMLPrintHandler.printBeginElement(writer, buffer.toString(),
        indent, false);
    // Print elements
    writeElements(indent, writer);
    // Print end element
    XMLPrintHandler.printEndElement(writer, getElement(), indent);
  } catch (IOException e) {
    // Suppress
    // e.printStackTrace();
  }
}

代码示例来源:origin: org.eclipse.pde.ua/core

public void write(String indent, PrintWriter writer) {
  StringBuffer buffer = new StringBuffer();
  try {
    // Assemble start element
    buffer.append(getElement());
    // Assemble attributes
    writeAttributes(buffer);
    // Print start element and attributes
    XMLPrintHandler.printBeginElement(writer, buffer.toString(),
        indent, false);
    // Print elements
    writeElements(indent, writer);
    // Print end element
    XMLPrintHandler.printEndElement(writer, getElement(), indent);
  } catch (IOException e) {
    // Suppress
    // e.printStackTrace();
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

public void write(String indent, PrintWriter writer) {
  StringBuffer buffer = new StringBuffer();
  try {
    // Assemble start element
    buffer.append(getElement());
    // Assemble attributes
    writeAttributes(buffer);
    // Print start element and attributes
    XMLPrintHandler.printBeginElement(writer, buffer.toString(),
        indent, false);
    // Print elements
    writeElements(indent, writer);
    // Print end element
    XMLPrintHandler.printEndElement(writer, getElement(), indent);
  } catch (IOException e) {
    // Suppress
    //e.printStackTrace();
  }             
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

XMLPrintHandler.printBeginElement(writer, buffer.toString(),
    indent, false);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com