Package org.eclipse.php.internal.ui.text

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


    /*
     * @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

      }

      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

      }

      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

         * 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

         * @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

TOP

Related Classes of org.eclipse.php.internal.ui.text.DocumentCharacterIterator

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.