Examples of containsReadOnly()


Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    if (structuredDocument == null)
      return;
    if (source == null)
      source = new String();
    int startOffset = flatNode.getStartOffset();
    if (structuredDocument.containsReadOnly(startOffset + offset, length))
      return;
    // We use 'structuredDocument' as the requester object just so this
    // and the other
    // format-related 'repalceText' (in replaceSource) can use the same
    // requester.
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    IStructuredDocument structuredDocument = model.getStructuredDocument();
    if (structuredDocument == null)
      return;
    if (source == null)
      source = new String();
    if (structuredDocument.containsReadOnly(offset, length))
      return;
    // We use 'structuredDocument' as the requester object just so this
    // and the other
    // format-related 'repalceText' (in replaceSource) can use the same
    // requester.
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    IStructuredDocument structuredDocument = model.getStructuredDocument();
    if (structuredDocument == null)
      return result;
    if (source == null)
      source = new String();
    if (structuredDocument.containsReadOnly(offset, length))
      return result;
    if (requester == null) {
      requester = structuredDocument;
    }
    return structuredDocument.replaceText(requester, offset, length, source);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    if (structuredDocument == null) {
      return false;
    }
    else {
      int length = end - start;
      return structuredDocument.containsReadOnly(start, length);
    }
  }

  /**
   * @deprecated - present for compatibility only
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

        }
      }
    }
    if (minStart < maxEnd) {
      IStructuredDocument document = (IStructuredDocument) fSourceViewer.getDocument();
      if (document.containsReadOnly(minStart, maxEnd)) {
        Iterator nonDefaultStyleRangeIterator = textPresentation.getNonDefaultStyleRangeIterator();
        while (nonDefaultStyleRangeIterator.hasNext()) {
          StyleRange styleRange = (StyleRange) nonDefaultStyleRangeIterator.next();
          if (document.containsReadOnly(styleRange.start, styleRange.length)) {
            adjustForeground(styleRange);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

      IStructuredDocument document = (IStructuredDocument) fSourceViewer.getDocument();
      if (document.containsReadOnly(minStart, maxEnd)) {
        Iterator nonDefaultStyleRangeIterator = textPresentation.getNonDefaultStyleRangeIterator();
        while (nonDefaultStyleRangeIterator.hasNext()) {
          StyleRange styleRange = (StyleRange) nonDefaultStyleRangeIterator.next();
          if (document.containsReadOnly(styleRange.start, styleRange.length)) {
            adjustForeground(styleRange);
          }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

      startReconcilingPositions();
      IStructuredDocument document = (IStructuredDocument) fDocument;
      model = ModelManagerImpl.getInstance().getModelForRead(document);
      IStructuredDocumentRegion[] regions = document.getStructuredDocumentRegions(partition.getOffset(), partition.getLength());
      for (int i = 0; i < regions.length && fIsInstalled; i++) {
        if (document.containsReadOnly(regions[i].getStartOffset(), regions[i].getLength()))
          addPosition(new Position(regions[i].getStartOffset(), regions[i].getLength()), null, true);
        else {
          for (int j = 0; j < fJobSemanticHighlightings.length && fIsInstalled; j++) {
            if (fJobHighlightings[j].isEnabled()) {
              Position[] consumes = null;
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

     * on an ITextRegion boundary, so we combine consecutive styles when
     * found to be equivalent. Plus, for now, we'll just adjust
     * foreground. Eventually will use a "dimming" algrorithm to adjust
     * color's satuation/brightness.
     */
    if (structuredDocument.containsReadOnly(start, length)) {
      // something is read-only in the line, so go through each style,
      // and adjust
      for (int i = 0; i < result.length; i++) {
        StyleRange styleRange = result[i];
        if (structuredDocument.containsReadOnly(styleRange.start, styleRange.length)) {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    if (structuredDocument.containsReadOnly(start, length)) {
      // something is read-only in the line, so go through each style,
      // and adjust
      for (int i = 0; i < result.length; i++) {
        StyleRange styleRange = result[i];
        if (structuredDocument.containsReadOnly(styleRange.start, styleRange.length)) {
          adjustForeground(styleRange);
        }
      }
    }
    return result;
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument.containsReadOnly()

    if (structuredDocument == null) {
      return false;
    }
    else {
      int length = end - start;
      return structuredDocument.containsReadOnly(start, length);
    }
  }

  /**
   * @deprecated - present for compatibility only
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.