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

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

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

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

@Override
public void replaceSelection(String text, boolean regExReplace) {
  Point s= TextViewer.this.getSelectedRange();
  if (s.x > -1 && s.y > -1) {
    try {
      IRegion matchRegion= TextViewer.this.getFindReplaceDocumentAdapter().replace(text, regExReplace);
      int length= -1;
      if (matchRegion != null)
        length= matchRegion.getLength();
      if (text != null && length > 0)
        TextViewer.this.setSelectedRange(s.x, length);
    } catch (BadLocationException x) {
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void replaceSelection(String text, boolean regExReplace) {
  Point s= TextViewer.this.getSelectedRange();
  if (s.x > -1 && s.y > -1) {
    try {
      IRegion matchRegion= TextViewer.this.getFindReplaceDocumentAdapter().replace(text, regExReplace);
      int length= -1;
      if (matchRegion != null)
        length= matchRegion.getLength();
      if (text != null && length > 0)
        TextViewer.this.setSelectedRange(s.x, length);
    } catch (BadLocationException x) {
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

  return -1;
FindReplaceDocumentAdapter adapter= getFindReplaceDocumentAdapter();
IRegion matchRegion= adapter.find(widgetOffset, findString, forwardSearch, caseSensitive, wholeWord, regExSearch);
int widgetPos= -1;
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

FindReplaceDocumentAdapter adapter= getFindReplaceDocumentAdapter();
IRegion matchRegion= adapter.find(widgetOffset, findString, forwardSearch, caseSensitive, wholeWord, regExSearch);
if (matchRegion != null) {
origin: org.eclipse.platform/org.eclipse.jface.text

FindReplaceDocumentAdapter adapter= getFindReplaceDocumentAdapter();
IRegion matchRegion= adapter.find(widgetOffset, findString, forwardSearch, caseSensitive, wholeWord, regExSearch);
if (matchRegion != null) {
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  return -1;
FindReplaceDocumentAdapter adapter= getFindReplaceDocumentAdapter();
IRegion matchRegion= adapter.find(widgetOffset, findString, forwardSearch, caseSensitive, wholeWord, regExSearch);
int widgetPos= -1;
org.eclipse.jface.textTextViewergetFindReplaceDocumentAdapter

Javadoc

Returns the find/replace document adapter.

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

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
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