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

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

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

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

/**
 * Updates the given slave document to show the specified range of its master document.
 *
 * @param slaveDocument the slave document
 * @param modelRangeOffset the offset of the master document range
 * @param modelRangeLength the length of the master document range
 * @return <code>true</code> if the slave has been adapted successfully
 * @throws BadLocationException in case the specified range is not valid in the master document
 * @since 3.0
 */
protected boolean updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException {
  return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength);
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Updates the given slave document to show the specified range of its master document.
 *
 * @param slaveDocument the slave document
 * @param modelRangeOffset the offset of the master document range
 * @param modelRangeLength the length of the master document range
 * @return <code>true</code> if the slave has been adapted successfully
 * @throws BadLocationException in case the specified range is not valid in the master document
 * @since 3.0
 */
protected boolean updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException {
  return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength);
}
org.eclipse.jface.textTextViewerupdateVisibleDocument

Javadoc

Sets the given slave document to the specified range of its master document.

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

  • Making http post requests using okhttp
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
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