Examples of DocumentCharacterIterator


Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

     * @seeorg.eclipse.jface.text.source.projection.IProjectionPosition#
     * computeFoldingRegions(org.eclipse.jface.text.IDocument)
     */
    public IRegion[] computeProjectionRegions(IDocument document)
        throws BadLocationException {
      DocumentCharacterIterator sequence = new DocumentCharacterIterator(
          document, offset, offset + length);
      int prefixEnd = 0;
      int contentStart = findFirstContent(sequence, prefixEnd);

      int firstLine = document.getLineOfOffset(offset + prefixEnd);
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

    /*
     * @seeorg.eclipse.jface.text.source.projection.IProjectionPosition#
     * computeCaptionOffset(org.eclipse.jface.text.IDocument)
     */
    public int computeCaptionOffset(IDocument document) {
      DocumentCharacterIterator sequence = new DocumentCharacterIterator(
          document, offset, offset + length);
      return findFirstContent(sequence, 0);
    }
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

      }

      final ISourceViewer viewer = getSourceViewer();
      final IDocument document = viewer.getDocument();
      fIterator
          .setText((CharacterIterator) new DocumentCharacterIterator(
              document));
      int position = widgetOffset2ModelOffset(viewer, viewer
          .getTextWidget().getCaretOffset());
      if (position == -1) {
        return;
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

      }

      final ISourceViewer viewer = getSourceViewer();
      final IDocument document = viewer.getDocument();
      fIterator
          .setText((CharacterIterator) new DocumentCharacterIterator(
              document));
      int position = widgetOffset2ModelOffset(viewer, viewer
          .getTextWidget().getCaretOffset());
      if (position == -1) {
        return;
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

         * computeFoldingRegions(org.eclipse.jface.text.IDocument)
         */
        public IRegion[] computeProjectionRegions(IDocument document)
                throws BadLocationException
        {
            DocumentCharacterIterator sequence = new DocumentCharacterIterator(
                    document, offset, offset + length);
            int prefixEnd = 0;
            int contentStart = findFirstContent(sequence, prefixEnd);

            int firstLine = document.getLineOfOffset(offset + prefixEnd);
View Full Code Here

Examples of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

         * @seeorg.eclipse.jface.text.source.projection.IProjectionPosition#
         * computeCaptionOffset(org.eclipse.jface.text.IDocument)
         */
        public int computeCaptionOffset(IDocument document)
        {
            DocumentCharacterIterator sequence = new DocumentCharacterIterator(
                    document, offset, offset + length);
            return findFirstContent(sequence, 0);
        }
View Full Code Here

Examples of org.erlide.ui.internal.DocumentCharacterIterator

         * computeFoldingRegions(org.eclipse.jface.text.IDocument)
         */
        @Override
        public IRegion[] computeProjectionRegions(final IDocument document)
                throws BadLocationException {
            final DocumentCharacterIterator sequence = new DocumentCharacterIterator(
                    document, offset, offset + length);
            final int prefixEnd = 0;
            final int contentStart = findFirstContent(sequence, prefixEnd);

            final int firstLine = document.getLineOfOffset(offset + prefixEnd);
View Full Code Here

Examples of org.erlide.ui.internal.DocumentCharacterIterator

         * computeCaptionOffset(org.eclipse.jface.text.IDocument)
         */
        @Override
        public int computeCaptionOffset(final IDocument document) {
            // return 0;
            final DocumentCharacterIterator sequence = new DocumentCharacterIterator(
                    document, offset, offset + length);
            return findFirstContent(sequence, 0);
        }
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.