Examples of IInformationControlCreator


Examples of org.eclipse.jface.text.IInformationControlCreator

   * Creates or Returns the <code>IContentAssistant</code>.
   */
  public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    if(assistant==null){
      assistant = new ContentAssistant();
      assistant.setInformationControlCreator(new IInformationControlCreator() {
        public IInformationControl createInformationControl(Shell parent) {
          return new DefaultInformationControl(parent);
        }});
      assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
      assistant.enableAutoInsert(true);
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   *            the source viewer to be configured by this configuration
   * @return the information control creator
   */
  final public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    // used by hover help
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
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 getInformationPresenterControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE | SWT.TOOL;
        int style = SWT.V_SCROLL | SWT.H_SCROLL;
        return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
      }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   * Returns the information control creator for the quick assist assistant.
   *
   * @return the information control creator
   */
  private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   *            the source viewer to be configured by this configuration
   * @return the information control creator
   */
  final public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    // used by hover help
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
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 getInformationPresenterControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE | SWT.TOOL;
        int style = SWT.V_SCROLL | SWT.H_SCROLL;
        return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
      }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

   * Returns the information control creator for the quick assist assistant.
   *
   * @return the information control creator
   */
  private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
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
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.