Package org.eclipse.wst.xml.core.internal.text.rules

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


      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

    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

  public XMLDocumentLoader() {
    super();
  }

  public IDocumentPartitioner getDefaultDocumentPartitioner() {
    return new StructuredTextPartitionerForXML();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML

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.