Examples of PHPStructuredTextPartitioner


Examples of org.eclipse.php.internal.core.documentModel.partitioner.PHPStructuredTextPartitioner

    fInput = content;
    fNodes = sdRegion;

    doc = new Document(fInput);
    doc.setDocumentPartitioner(new PHPStructuredTextPartitioner());
    fViewer.setInput(doc);
    applyStyles();
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.documentModel.partitioner.PHPStructuredTextPartitioner

    try {
      final IStructuredDocument structuredDocument = modelForEdit
          .getStructuredDocument();

      // create the partitioner
      final PHPStructuredTextPartitioner structuredTextPartitioner = new PHPStructuredTextPartitioner();
      structuredTextPartitioner.connect(structuredDocument);

      // go over the file, one line at a time, and search for the markers
      String curLine = reader.readLine();
      while (curLine != null) {
        for (int i = 0; i < markers.length; i++) {
          int lineOffset = curLine.indexOf(markers[i]);
          // if marker was found in current line, get partition type
          if (lineOffset != -1) {
            ITypedRegion partition = structuredTextPartitioner
                .getPartition(offset + lineOffset);
            results.add(partition.getType());
          }
        }
        // update global offset
View Full Code Here

Examples of org.eclipse.php.internal.core.documentModel.partitioner.PHPStructuredTextPartitioner

  protected String getDocumentPartitioning() {
    return IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING;
  }

  public IDocumentPartitioner getDocumentPartitioner() {
    return new PHPStructuredTextPartitioner();
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.documentModel.partitioner.PHPStructuredTextPartitioner

  public IDocumentLoader newInstance() {
    return new PHPDocumentLoader();
  }

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