Examples of modelLine2WidgetLine()


Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

   */
  private boolean isFoldedLine(int widgetLine) {
    if (fTextViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5)fTextViewer;
      int modelLine= extension.widgetLine2ModelLine(widgetLine);
      int widgetLine2= extension.modelLine2WidgetLine(modelLine + 1);
      return widgetLine2 == -1;
    }
    return false;
  }

View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

    int widgetEndLine= -1;
    if (fViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5) fViewer;
      int modelEndLine= end(range);
      for (int modelLine= range.getStartLine(); modelLine < modelEndLine; modelLine++) {
        int widgetLine= extension.modelLine2WidgetLine(modelLine);
        if (widgetLine != -1) {
          if (widgetStartLine == -1)
            widgetStartLine= widgetLine;
          widgetEndLine= widgetLine;
        }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

        // don't draw if the pair position is really hidden and widgetRange just
        // marks the coverage around it.
        IDocument doc= fSourceViewer.getDocument();
        int startLine= doc.getLineOfOffset(offset);
        int endLine= doc.getLineOfOffset(offset + length);
        if (extension.modelLine2WidgetLine(startLine) == -1 || extension.modelLine2WidgetLine(endLine) == -1)
          return;
      } catch (BadLocationException e) {
        return;
      }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

        // don't draw if the pair position is really hidden and widgetRange just
        // marks the coverage around it.
        IDocument doc= fSourceViewer.getDocument();
        int startLine= doc.getLineOfOffset(offset);
        int endLine= doc.getLineOfOffset(offset + length);
        if (extension.modelLine2WidgetLine(startLine) == -1 || extension.modelLine2WidgetLine(endLine) == -1)
          return;
      } catch (BadLocationException e) {
        return;
      }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

   * @throws BadLocationException if <code>line</code> is not valid in the viewer's document
   */
  private int getWidgetLineNumber(int line) throws BadLocationException {
    if (fSourceViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;
      return extension.modelLine2WidgetLine(line);
    }

    IRegion region= fSourceViewer.getVisibleRegion();
    int firstLine= fSourceViewer.getDocument().getLineOfOffset(region.getOffset());
    return line - firstLine;
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

   * @throws BadLocationException if <code>line</code> is not valid in the viewer's document
   */
  private int getWidgetLineNumber(int line) throws BadLocationException {
    if (fSourceViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;
      return extension.modelLine2WidgetLine(line);
    }

    IRegion region= fSourceViewer.getVisibleRegion();
    int firstLine= fSourceViewer.getDocument().getLineOfOffset(region.getOffset());
    return line - firstLine;
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

        // don't draw if the pair position is really hidden and widgetRange just
        // marks the coverage around it.
        IDocument doc= fSourceViewer.getDocument();
        int startLine= doc.getLineOfOffset(offset);
        int endLine= doc.getLineOfOffset(offset + length);
        if (extension.modelLine2WidgetLine(startLine) == -1 || extension.modelLine2WidgetLine(endLine) == -1)
          return;
      } catch (BadLocationException e) {
        return;
      }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

        // don't draw if the pair position is really hidden and widgetRange just
        // marks the coverage around it.
        IDocument doc= fSourceViewer.getDocument();
        int startLine= doc.getLineOfOffset(offset);
        int endLine= doc.getLineOfOffset(offset + length);
        if (extension.modelLine2WidgetLine(startLine) == -1 || extension.modelLine2WidgetLine(endLine) == -1)
          return;
      } catch (BadLocationException e) {
        return;
      }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

   * @throws BadLocationException if <code>line</code> is not valid in the viewer's document
   */
  private int getWidgetLineNumber(int line) throws BadLocationException {
    if (fSourceViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;
      return extension.modelLine2WidgetLine(line);
    }

    IRegion region= fSourceViewer.getVisibleRegion();
    int firstLine= fSourceViewer.getDocument().getLineOfOffset(region.getOffset());
    return line - firstLine;
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewerExtension5.modelLine2WidgetLine()

    int widgetEndLine= -1;
    if (fViewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension= (ITextViewerExtension5) fViewer;
      int modelEndLine= end(range);
      for (int modelLine= range.getStartLine(); modelLine < modelEndLine; modelLine++) {
        int widgetLine= extension.modelLine2WidgetLine(modelLine);
        if (widgetLine != -1) {
          if (widgetStartLine == -1)
            widgetStartLine= widgetLine;
          widgetEndLine= widgetLine;
        }
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.