Tabnine Logo
MarkSelection
Code IndexAdd Tabnine to your IDE (free)

How to use
MarkSelection
in
org.eclipse.jface.text

Best Java code snippets using org.eclipse.jface.text.MarkSelection (Showing top 2 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Sends out a mark selection changed event to all registered listeners.
 *
 * @param offset the offset of the mark selection in the visible document, the offset is <code>-1</code> if the mark was cleared
 * @param length the length of the mark selection, may be negative if the caret is before the mark.
 * @since 2.0
 */
protected void markChanged(int offset, int length) {
  if (redraws()) {
    if (offset != -1) {
      IRegion r= widgetRange2ModelRange(new Region(offset, length));
      offset= r.getOffset();
      length= r.getLength();
    }
    ISelection selection= new MarkSelection(getDocument(), offset, length);
    SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
    fireSelectionChanged(event);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Sends out a mark selection changed event to all registered listeners.
 *
 * @param offset the offset of the mark selection in the visible document, the offset is <code>-1</code> if the mark was cleared
 * @param length the length of the mark selection, may be negative if the caret is before the mark.
 * @since 2.0
 */
protected void markChanged(int offset, int length) {
  if (redraws()) {
    if (offset != -1) {
      IRegion r= widgetRange2ModelRange(new Region(offset, length));
      offset= r.getOffset();
      length= r.getLength();
    }
    ISelection selection= new MarkSelection(getDocument(), offset, length);
    SelectionChangedEvent event= new SelectionChangedEvent(this, selection);
    fireSelectionChanged(event);
  }
}
org.eclipse.jface.textMarkSelection

Javadoc

Default implementation of org.eclipse.jface.text.IMarkSelection.

Most used methods

  • <init>
    Creates a MarkSelection.

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • 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