Examples of IInformationControlCreator


Examples of org.eclipse.jface.text.IInformationControlCreator

    // because there is no special html that should be presented when just
    // showing diff
    // in the future, sourceviewer should be used instead of this plain
    // text control like java uses
    // SourceViewerInformationControl
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent);
      }
    };
  }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator()
   */
  public IInformationControlCreator getInformationControlCreator() {
    // [277530] Use the java proposal's information control creator
    ICompletionProposal javaProposal = getJavaCompletionProposal();
    IInformationControlCreator informationControlCreator = null;

    if (javaProposal instanceof ICompletionProposalExtension3)
      informationControlCreator = ((ICompletionProposalExtension3) javaProposal).getInformationControlCreator();

    return informationControlCreator;
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    else {
      updateEditorControlsForContentType(null);
    }

    // used for Show Tooltip Description
    IInformationControlCreator informationControlCreator = new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell shell) {
        boolean cutDown = false;
        int style = cutDown ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL);
        return new DefaultInformationControl(shell, SWT.RESIZE | SWT.TOOL, style, new HTMLTextPresenter(cutDown));
      }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    ProjectionViewer projectionViewer = (ProjectionViewer) getSourceViewer();

    fProjectionSupport = new ProjectionSupport(projectionViewer, getAnnotationAccess(), getSharedColors());
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
    fProjectionSupport.setHoverControlCreator(new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent);
      }
    });
    fProjectionSupport.install();
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   *
   * @param sourceViewer the source viewer to be configured by this configuration
   * @return an information control creator
   */
  private IInformationControlCreator getOutlinePresenterControlCreator(final AbstractQuickOutlineConfiguration config) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE;
        return new QuickOutlinePopupDialog(parent, shellStyle, getInternalModel(), config);
      }
    };
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   * (non-Javadoc)
   *
   * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
   */
  public IInformationControlCreator getHoverControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true), EditorsUI.getTooltipAffordanceString());
      }
    };
  }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    hoverList.add(new AnnotationHoverProcessor());
    return hoverList;
  }

  public IInformationControlCreator getHoverControlCreator() {
    IInformationControlCreator creator = null;

    if (fBestMatchHover instanceof ITextHoverExtension) {
      creator = ((ITextHoverExtension) fBestMatchHover).getHoverControlCreator();
    }
    return creator;
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator()
   */
  public IInformationControlCreator getInformationControlCreator() {
    // [277530] Use the java proposal's information control creator
    ICompletionProposal javaProposal = getJavaCompletionProposal();
    IInformationControlCreator informationControlCreator = null;

    if (javaProposal instanceof ICompletionProposalExtension3)
      informationControlCreator = ((ICompletionProposalExtension3) javaProposal).getInformationControlCreator();

    return informationControlCreator;
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    hoverList.add(new AnnotationHoverProcessor());
    return hoverList;
  }

  public IInformationControlCreator getHoverControlCreator() {
    IInformationControlCreator creator = null;

    if (fBestMatchHover instanceof ITextHoverExtension) {
      creator = ((ITextHoverExtension) fBestMatchHover).getHoverControlCreator();
    }
    return creator;
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

  /*
   * @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator()
   * @since 3.4
   */
  public IInformationControlCreator getInformationPresenterControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new SourceViewerInformationControl(parent, true, fSymbolicFontName, null);
      }
    };
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.