Package org.eclipse.wst.xml.core.internal.cleanup

Examples of org.eclipse.wst.xml.core.internal.cleanup.CleanupProcessorXML


    // do nothing
  }

  IStructuredCleanupProcessor getCleanupProcessor() {
    if (fCleanupProcessor == null) {
      fCleanupProcessor = new CleanupProcessorXML();
    }

    return fCleanupProcessor;
  }
View Full Code Here


    return null;
  }

  IStructuredCleanupProcessor getCleanupProcessor() {
    if (fCleanupProcessor == null) {
      fCleanupProcessor = new CleanupProcessorXML();
    }

    return fCleanupProcessor;
  }
View Full Code Here

      // Add the new element node
      legacyXmlElement.getParentNode().insertBefore(namespaceJndiElement, legacyXmlElement);

      // Format the new element node
      IStructuredFormatProcessor formatProcessor = new FormatProcessorXML();
      CleanupProcessorXML cleanupProcessor = new CleanupProcessorXML();
      cleanupProcessor.getCleanupPreferences().setCompressEmptyElementTags(true);

      formatProcessor.formatNode(namespaceJndiElement);
      cleanupProcessor.cleanupNode(namespaceJndiElement);

      legacyXmlElement.getParentNode().removeChild(legacyXmlElement);
    }
    finally {
      if (model != null) {
View Full Code Here

    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

          formatProcessor.formatNode(newBeanProperty);

          IEditorPart editor = XmlQuickFixUtil.getMarkedEditor(marker);
          setCursorPositionToPropertyValue((XMLMultiPageEditorPart) editor, (ElementImpl) newBeanProperty);

          CleanupProcessorXML cleanupProcessor = new CleanupProcessorXML();
          cleanupProcessor.getCleanupPreferences().setCompressEmptyElementTags(true);
          cleanupProcessor.cleanupNode(newBeanProperty);

          XmlQuickFixUtil.saveMarkedFile(marker);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.cleanup.CleanupProcessorXML

Copyright © 2018 www.massapicom. 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.