Examples of revealRange()


Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

                }
                if (offset > -1 && length > 0) {

                    try {
                        textWidget.setRedraw(false);
                        sourceViewer.revealRange(offset, length);
                        sourceViewer.setSelectedRange(offset, length);
                    } finally {
                        textWidget.setRedraw(true);
                    }
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    fLastCompletion.advance();
   
    // move the caret to the insertion point
    ISourceViewer sourceViewer= ((AbstractTextEditor) getTextEditor()).getSourceViewer();
    sourceViewer.setSelectedRange(fLastCompletion.startOffset + fLastCompletion.length, 0);
    sourceViewer.revealRange(fLastCompletion.startOffset, fLastCompletion.length);
   
    fExitStrategy.arm(((AbstractTextEditor) getTextEditor()).getSourceViewer());
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    if (selection.getLength() < 0)
      targetOffset -= selection.getLength();

    sourceViewer.setSelectedRange(targetOffset, selection.getLength());
    sourceViewer.revealRange(targetOffset, selection.getLength());
  }

  @Override
  protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
    bracketMatcher = new RutaPairMatcher(BRACKETS, this);
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    if (selection.getLength() < 0)
      targetOffset -= selection.getLength();

    if (sourceViewer != null) {
      sourceViewer.setSelectedRange(targetOffset, selection.getLength());
      sourceViewer.revealRange(targetOffset, selection.getLength());
    }
  }
 
  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    if (selection.getLength() < 0)
      targetOffset -= selection.getLength();

    if (sourceViewer != null) {
      sourceViewer.setSelectedRange(targetOffset, selection.getLength());
      sourceViewer.revealRange(targetOffset, selection.getLength());
    }
  }
 
  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    if (selection.getLength() < 0)
      targetOffset -= selection.getLength();

    sourceViewer.setSelectedRange(targetOffset, selection.getLength());
    sourceViewer.revealRange(targetOffset, selection.getLength());
  }

  @Override
  protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
    bracketMatcher = new RutaPairMatcher(BRACKETS, this);
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

    }

    // move the caret to the insertion point
    ISourceViewer sourceViewer= ((AbstractTextEditor) getTextEditor()).getSourceViewer();
    sourceViewer.setSelectedRange(fLastCompletion.startOffset + fLastCompletion.length, 0);
    sourceViewer.revealRange(fLastCompletion.startOffset, fLastCompletion.length);

    fExitStrategy.arm(((AbstractTextEditor) getTextEditor()).getSourceViewer());
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

     * implementation copied from org.eclipse.ui.externaltools.internal.ant.editor.PlantyEditor#setSelection
     */
    public void setSelection(int offset, int length) {
        ISourceViewer sourceViewer = getSourceViewer();
        sourceViewer.setSelectedRange(offset, length);
        sourceViewer.revealRange(offset, length);
    }

    /**
     * Selects more than one node, making a selection from the 1st node to the last node passed.
     */
 
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

            if (offset > -1 && length > 0) {

                try {
                    textWidget.setRedraw(false);
                    sourceViewer.revealRange(offset, length);
                    sourceViewer.setSelectedRange(offset, length);
                } finally {
                    textWidget.setRedraw(true);
                }
View Full Code Here

Examples of org.eclipse.jface.text.source.ISourceViewer.revealRange()

                    }
                }
                if (offset > -1 && length > 0) {
                    try {
                        textWidget.setRedraw(false);
                        sourceViewer.revealRange(offset, length);
                        sourceViewer.setSelectedRange(offset, length);
                    } finally {
                        textWidget.setRedraw(true);
                    }
                    markInNavigationHistory();
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.