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

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

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

origin: org.eclipse.platform/org.eclipse.compare

/**
 * @param viewers All viewers that can provide a selection
 * @param viewerInFocus the viewer currently in focus or <code>null</code>
 */
public void setViewers(TextViewer[] viewers, TextViewer viewerInFocus) {
  Assert.isNotNull(viewers);
  fViewers= viewers;
  InternalListener listener= new InternalListener();
  fViewerInFocus= viewerInFocus;
  for (int i= 0; i < fViewers.length; i++) {
    TextViewer viewer= fViewers[i];
    viewer.addSelectionChangedListener(listener);
    viewer.addPostSelectionChangedListener(new InternalPostSelectionListener());
    StyledText textWidget = viewer.getTextWidget();
    textWidget.addFocusListener(listener);
  }
}
origin: org.eclipse.mylyn.commons/workbench

public void install(final TextViewer viewer, boolean spellCheck) {
  viewer.getControl().addFocusListener(new TextViewerFocusListener(viewer, spellCheck));
  if (selectionChangedListener != null) {
    viewer.addSelectionChangedListener(selectionChangedListener);
  }
  setTextViewer(viewer.getControl(), viewer);
}
org.eclipse.jface.textTextVieweraddSelectionChangedListener

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

  • Finding current android device location
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top Sublime Text plugins
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