Examples of StructuredTextPartitionerForXML


Examples of org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML

    else if (contentType.equalsIgnoreCase(XHTML_MIME_TYPE)) {
      result = new StructuredTextPartitionerForHTML();
      result.connect(structuredDocument);
    }
    else if (contentType.equalsIgnoreCase(XML_MIME_TYPE) || contentType.endsWith("+xml")) { //$NON-NLS-1$
      result = new StructuredTextPartitionerForXML();
      result.connect(structuredDocument);
    }
    else {
      result = new StructuredTextPartitioner();
      result.connect(structuredDocument);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML

      IDocumentPartitioner documentPartitioner = structuredDocument.getDocumentPartitioner();
      // ISSUE: this logic is flawed, not sure of original intent, but
      // added null/type checks for safety.
      if (documentPartitioner != null && documentPartitioner instanceof StructuredTextPartitionerForJSP) {
        if (newEmbeddedContentType.getFamilyId().equals(ContentTypeIdForXML.ContentTypeID_XML)) {
          ((StructuredTextPartitionerForJSP) documentPartitioner).setEmbeddedPartitioner(new StructuredTextPartitionerForXML());
        }
        else if (newEmbeddedContentType.getFamilyId().equals(ContentTypeIdForHTML.ContentTypeID_HTML)) {
          ((StructuredTextPartitionerForJSP) documentPartitioner).setEmbeddedPartitioner(new StructuredTextPartitionerForHTML());
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML

    else if (contentType.equalsIgnoreCase(XHTML_MIME_TYPE)) {
      result = new StructuredTextPartitionerForHTML();
      result.connect(structuredDocument);
    }
    else if (contentType.equalsIgnoreCase(XML_MIME_TYPE) || contentType.endsWith("+xml")) { //$NON-NLS-1$
      result = new StructuredTextPartitionerForXML();
      result.connect(structuredDocument);
    }
    else {
      result = new StructuredTextPartitioner();
      result.connect(structuredDocument);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML

  public XMLDocumentLoader() {
    super();
  }

  public IDocumentPartitioner getDefaultDocumentPartitioner() {
    return new StructuredTextPartitionerForXML();
  }
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.