Examples of formatModel()


Examples of org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML.formatModel()

  private void formatElement(IProgressMonitor monitor) {
    FormatProcessorXML formatProcessor = new FormatProcessorXML();
    formatProcessor.setProgressMonitor(monitor);
    formatProcessor.getFormatPreferences().setClearAllBlankLines(true);
    formatProcessor.formatModel(model);

    CleanupProcessorXML bla = new CleanupProcessorXML();
    bla.getCleanupPreferences().setCompressEmptyElementTags(true);
    bla.cleanupModel(model);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.