congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TextViewer.firePostSelectionChanged
Code IndexAdd Tabnine to your IDE (free)

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

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

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

  @Override
  public void run() {
    if (id == fNumberOfPostSelectionChangedEvents[0]) {
      // Check again because this is executed after the delay
      if (getDisplay() != null)  {
        Point selection= fTextWidget.getSelectionRange();
        if (selection != null) {
          IRegion r= widgetRange2ModelRange(new Region(selection.x, selection.y));
          if (fFireEqualPostSelectionChange || (r != null && !r.equals(fLastSentPostSelectionChange)) || r == null)  {
            fLastSentPostSelectionChange= r;
            fFireEqualPostSelectionChange= false;
            firePostSelectionChanged(selection.x, selection.y);
          }
        }
      }
    }
  }
});
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  @Override
  public void run() {
    if (id == fNumberOfPostSelectionChangedEvents[0]) {
      // Check again because this is executed after the delay
      if (getDisplay() != null)  {
        Point selection= fTextWidget.getSelectionRange();
        if (selection != null) {
          IRegion r= widgetRange2ModelRange(new Region(selection.x, selection.y));
          if (fFireEqualPostSelectionChange || (r != null && !r.equals(fLastSentPostSelectionChange)) || r == null)  {
            fLastSentPostSelectionChange= r;
            fFireEqualPostSelectionChange= false;
            firePostSelectionChanged(selection.x, selection.y);
          }
        }
      }
    }
  }
});
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Sends out a text selection changed event to all registered post selection changed listeners.
 *
 * @param offset the offset of the newly selected range in the visible document
 * @param length the length of the newly selected range in the visible document
 * @since 3.0
 */
protected void firePostSelectionChanged(int offset, int length) {
  if (redraws()) {
    IRegion r= widgetRange2ModelRange(new Region(offset, length));
    ISelection selection= r != null ? new TextSelection(getDocument(), r.getOffset(), r.getLength()) : TextSelection.emptySelection();
    SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
    firePostSelectionChanged(event);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Sends out a text selection changed event to all registered post selection changed listeners.
 *
 * @param offset the offset of the newly selected range in the visible document
 * @param length the length of the newly selected range in the visible document
 * @since 3.0
 */
protected void firePostSelectionChanged(int offset, int length) {
  if (redraws()) {
    IRegion r= widgetRange2ModelRange(new Region(offset, length));
    ISelection selection= r != null ? new TextSelection(getDocument(), r.getOffset(), r.getLength()) : TextSelection.emptySelection();
    SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
    firePostSelectionChanged(event);
  }
}
org.eclipse.jface.textTextViewerfirePostSelectionChanged

Javadoc

Sends out a text selection changed event to all registered post selection changed listeners.

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
  • getApplicationContext (Context)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Permission (java.security)
    Legacy security code; do not use.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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