Tabnine Logo
TextStatusContextViewer
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • setContentView (Activity)
  • findViewById (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Reference (javax.naming)
  • JButton (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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