Tabnine Logo
TextViewer.addTextListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addTextListener
method
in
org.eclipse.jface.text.TextViewer

Best Java code snippets using org.eclipse.jface.text.TextViewer.addTextListener (Showing top 4 results out of 315)

origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Installs this range. The range registers itself as background
 * line painter and text listener. Also, it creates a category with the
 * viewer's document to maintain its own extent.
 */
public void install() {
  TextViewer.this.addTextListener(this);
  fTextWidget.addLineBackgroundListener(this);
  IDocument document= TextViewer.this.getDocument();
  try {
    document.addPositionCategory(RANGE_CATEGORY);
    document.addPosition(RANGE_CATEGORY, fPosition);
    document.addPositionUpdater(this);
  } catch (BadPositionCategoryException e) {
    // should not happen
  } catch (BadLocationException e) {
    // should not happen
  }
  paint();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Installs this range. The range registers itself as background
 * line painter and text listener. Also, it creates a category with the
 * viewer's document to maintain its own extent.
 */
public void install() {
  TextViewer.this.addTextListener(this);
  fTextWidget.addLineBackgroundListener(this);
  IDocument document= TextViewer.this.getDocument();
  try {
    document.addPositionCategory(RANGE_CATEGORY);
    document.addPosition(RANGE_CATEGORY, fPosition);
    document.addPositionUpdater(this);
  } catch (BadPositionCategoryException e) {
    // should not happen
  } catch (BadLocationException e) {
    // should not happen
  }
  paint();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

fThread.setPriority(Thread.MIN_PRIORITY);
synchronized (fMutex) {
  fTextViewer.addTextListener(fStopper);
  fThread.start();
origin: org.eclipse.platform/org.eclipse.jface.text

fThread.setPriority(Thread.MIN_PRIORITY);
synchronized (fMutex) {
  fTextViewer.addTextListener(fStopper);
  fThread.start();
org.eclipse.jface.textTextVieweraddTextListener

Popular methods of TextViewer

  • getTextWidget
  • getControl
  • doOperation
  • setDocument
  • modelRange2WidgetRange
    Same as #modelRange2WidgetRange(IRegion) just for a org.eclipse.jface.text.Position.
  • getRewriteTarget
  • getSelection
  • modelLine2WidgetLine
    Implements the contract of ITextViewerExtension5#modelLine2WidgetLine(int).
  • getDocument
  • setSelectedRange
  • setSelection
  • <init>
    Create a new text viewer with the given SWT style bits. The viewer is ready to use but does not have
  • setSelection,
  • <init>,
  • canDoOperation,
  • getVisibleRegion,
  • handleDispose,
  • invalidateTextPresentation,
  • setTopIndex,
  • _getVisibleRegionOffset,
  • activatePlugins,
  • addPresentation

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now