Codota Logo
TextStatusContextViewer.getControl
Code IndexAdd Codota to your IDE (free)

How to use
getControl
method
in
org.eclipse.ltk.ui.refactoring.TextStatusContextViewer

Best Java code snippets using org.eclipse.ltk.ui.refactoring.TextStatusContextViewer.getControl (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.ltk.ui.refactoring

fPaneImage= imageDescriptor.createImage(getControl().getDisplay());
origin: org.eclipse/org.eclipse.ltk.ui.refactoring

/**
 * Sets the input of the source viewer to the given document and reveals the
 * region determined by the given parameter region.
 * 
 * @param document the document to present
 * @param region the region to reveal.
 */
protected void setInput(IDocument document, IRegion region) {
  Control ctrl= getControl();
  if (ctrl != null && ctrl.isDisposed())
    ctrl= null;
  try {
    if (ctrl != null)
      ctrl.setRedraw(false);
    fSourceViewer.setInput(document);
    if (region != null && document != null) {
      int offset= region.getOffset();
      int length= region.getLength();
      if (offset >= 0 && length >= 0) {
        fSourceViewer.setSelectedRange(offset, length);
        fSourceViewer.revealRange(offset, length);
      }
    }
  } finally {
    if (ctrl != null)
      ctrl.setRedraw(true);
  }
}

org.eclipse.ltk.ui.refactoringTextStatusContextViewergetControl

Popular methods of TextStatusContextViewer

  • createControl
  • createSourceViewer
    Hook to create the source viewer used to present the textual context information.

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now