Tabnine Logo
ContextInformationPopup2$ContextFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
ContextInformationPopup2$ContextFrame
in
org.eclipse.jface.internal.text.link.contentassist

Best Java code snippets using org.eclipse.jface.internal.text.link.contentassist.ContextInformationPopup2$ContextFrame (Showing top 2 results out of 315)

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

/**
 * Displays the given context information for the given offset.
 *
 * @param information the context information
 * @param offset the offset
 * @since 2.0
 */
private void internalShowContextInfo(IContextInformation information, int offset) {
  IContextInformationValidator validator= fContentAssistant.getContextInformationValidator(fViewer, offset);
  if (validator != null) {
    ContextFrame current= new ContextFrame();
    current.fInformation= information;
    current.fBeginOffset= (information instanceof IContextInformationExtension) ? ((IContextInformationExtension) information).getContextInformationPosition() : offset;
    if (current.fBeginOffset == -1) current.fBeginOffset= offset;
    current.fOffset= offset;
    current.fVisibleOffset= fViewer.getTextWidget().getSelectionRange().x - (offset - current.fBeginOffset);
    current.fValidator= validator;
    current.fPresenter= fContentAssistant.getContextInformationPresenter(fViewer, offset);
    fContextFrameStack.push(current);
    internalShowContextFrame(current, fContextFrameStack.size() == 1);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Displays the given context information for the given offset.
 *
 * @param information the context information
 * @param offset the offset
 * @since 2.0
 */
private void internalShowContextInfo(IContextInformation information, int offset) {
  IContextInformationValidator validator= fContentAssistant.getContextInformationValidator(fViewer, offset);
  if (validator != null) {
    ContextFrame current= new ContextFrame();
    current.fInformation= information;
    current.fBeginOffset= (information instanceof IContextInformationExtension) ? ((IContextInformationExtension) information).getContextInformationPosition() : offset;
    if (current.fBeginOffset == -1) current.fBeginOffset= offset;
    current.fOffset= offset;
    current.fVisibleOffset= fViewer.getTextWidget().getSelectionRange().x - (offset - current.fBeginOffset);
    current.fValidator= validator;
    current.fPresenter= fContentAssistant.getContextInformationPresenter(fViewer, offset);
    fContextFrameStack.push(current);
    internalShowContextFrame(current, fContextFrameStack.size() == 1);
  }
}
org.eclipse.jface.internal.text.link.contentassistContextInformationPopup2$ContextFrame

Javadoc

Represents the state necessary for embedding contexts.

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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