Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IInformationControlCreator


    public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
      return new ICompletionProposal[0];
    }
   
    public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
        return new IInformationControlCreator() {
            public IInformationControl createInformationControl(Shell parent) {
                return new DefaultInformationControl(parent, SWT.WRAP, presenter);
            }
        };
    }
View Full Code Here


        return getTextHover(sourceViewer, contentType, ITextViewerExtension2.DEFAULT_HOVER_STATE_MASK);
    }

    @Override
    public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
        return new IInformationControlCreator() {
            public IInformationControl createInformationControl(Shell parent) {
                return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true));
            }
        };
    }
View Full Code Here

        IDocument.DEFAULT_CONTENT_TYPE);

    contentAssistant
        .setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    contentAssistant
        .setInformationControlCreator(new IInformationControlCreator() {
          public IInformationControl createInformationControl(
              Shell parent) {
            return new DefaultInformationControl(parent, SWT.NONE,
                new HTMLTextPresenter(true));
          }
View Full Code Here

  /*
   * @see org.eclipse.jface.text.information.IInformationProviderExtension2#getInformationPresenterControlCreator()
   * @since 3.2
   */
  public IInformationControlCreator getInformationPresenterControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, (ToolBarManager)null, null);
      }
    };
  }
View Full Code Here

  protected void computeInformation() {
    Point location= getHoverEventLocation();
    int line= getVerticalRulerInfo().toDocumentLineNumber(location.y);
    IAnnotationHover hover= getAnnotationHover();

    IInformationControlCreator controlCreator= null;
    if (hover instanceof IAnnotationHoverExtension)
      controlCreator= ((IAnnotationHoverExtension)hover).getHoverControlCreator();
    setCustomInformationControlCreator(controlCreator);

    setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y));
View Full Code Here

  /*
   * @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

    /*
     * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
     */
    public IInformationControlCreator getHoverControlCreator() {
      return new IInformationControlCreator() {
        public IInformationControl createInformationControl(Shell parent) {
          Color foregroundColor= fTextViewer.getTextWidget().getForeground();
          Color backgroundColor= fTextViewer.getTextWidget().getBackground();
          return new LinkListInformationControl(parent, fManager, foregroundColor, backgroundColor);
        }
View Full Code Here

  /*
   * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#getHoverControlCreator()
   */
  public IInformationControlCreator getHoverControlCreator() {
    if (fInformationControlCreator == null) {
      fInformationControlCreator= new IInformationControlCreator() {
        public IInformationControl createInformationControl(Shell parent) {
          return new SourceViewerInformationControl(parent, false, JFaceResources.TEXT_FONT, null);
        }
      };
    }
View Full Code Here

   * @param sourceViewer the source viewer to be configured by this configuration
   * @return the information control creator or <code>null</code> if no information support should be installed
   * @since 2.0
   */
  public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent);
      }
    };
  }
View Full Code Here

   * @see org.eclipse.jface.text.information.IInformationProviderExtension2#getInformationPresenterControlCreator()
   * @since 3.3
   */
  public IInformationControlCreator getInformationPresenterControlCreator() {
    if (fInformationPresenterControlCreator == null) {
      fInformationPresenterControlCreator= new IInformationControlCreator() {
        public IInformationControl createInformationControl(Shell parent) {
          return new SourceViewerInformationControl(parent, true, JFaceResources.TEXT_FONT, null);
        }
      };
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IInformationControlCreator

Copyright © 2018 www.massapicom. 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.