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

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

Best Java code snippets using org.eclipse.ltk.ui.refactoring.TextStatusContextViewer (Showing top 7 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

public void createControl(Composite parent) {
  super.createControl(parent);
  getSourceViewer().configure(new SourceViewerConfiguration());
}

origin: org.eclipse/org.eclipse.ltk.ui.refactoring

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

/**
 * {@inheritDoc}
 */
public void createControl(Composite parent) {
  fForm= new ViewForm(parent, SWT.BORDER | SWT.FLAT);
  fForm.marginWidth= 0;
  fForm.marginHeight= 0;
  fLabel= new CLabel(fForm, SWT.NONE);
  fForm.setTopLeft(fLabel);
  fForm.addDisposeListener(new DisposeListener() {
    public void widgetDisposed(DisposeEvent e) {
      if (fPaneImage != null)
        fPaneImage.dispose();
    }
  });
  Dialog.applyDialogFont(parent);
  fSourceViewer= createSourceViewer(fForm);
  fSourceViewer.setEditable(false);
  fForm.setContent(fSourceViewer.getControl());
}
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);
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void createControl(Composite parent) {
  super.createControl(parent);
  final SourceViewer viewer= getSourceViewer();
  viewer.unconfigure();
  IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore();
  viewer.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
  viewer.getControl().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void createControl(Composite parent) {
  super.createControl(parent);
  final SourceViewer viewer= getSourceViewer();
  viewer.unconfigure();
  IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore();
  viewer.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
  viewer.getControl().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
}
origin: org.eclipse/org.eclipse.jdt.ui

public void createControl(Composite parent) {
  super.createControl(parent);
  final SourceViewer viewer= getSourceViewer();
  viewer.unconfigure();
  IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore();
  viewer.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
  viewer.getControl().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
}

org.eclipse.ltk.ui.refactoringTextStatusContextViewer

Javadoc

An abstract base implementation of a status context viewer that presents textual context information.

Subclasses need to implement #createSourceViewer(Composite) to create the correct source viewer. They should use the method #updateTitle(IAdaptable)and #setInput(IDocument,IRegion) to set the title text and image and to populate the source viewer.

Most used methods

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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