Examples of IInformationControlCreator


Examples of org.eclipse.jface.text.IInformationControlCreator

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

Examples of org.eclipse.jface.text.IInformationControlCreator

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

Examples of org.eclipse.jface.text.IInformationControlCreator

   * @param sourceViewer the source viewer to be configured by this configuration
   * @return an information presenter
   */
  public IInformationPresenter getOutlinePresenter(ISourceViewer sourceViewer) {
    InformationPresenter presenter;
    presenter = new InformationPresenter(new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new ATGOutlineInformationControl(parent, fEditor);
      }
    });
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

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

Examples of org.eclipse.jface.text.IInformationControlCreator

  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

Examples of org.eclipse.jface.text.IInformationControlCreator

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

Examples of org.eclipse.jface.text.IInformationControlCreator

     * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#getHoverControlCreator()
     */
    public IInformationControlCreator getHoverControlCreator() {
      RevisionInformation revisionInfo= fRevisionInfo;
      if (revisionInfo != null) {
        IInformationControlCreator creator= revisionInfo.getHoverControlCreator();
        if (creator != null)
          return creator;
      }
      return new HoverInformationControlCreator(false);
    }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

         * @see org.eclipse.jface.text.information.IInformationProviderExtension2#getInformationPresenterControlCreator()
         */
        public IInformationControlCreator getInformationPresenterControlCreator() {
      RevisionInformation revisionInfo= fRevisionInfo;
      if (revisionInfo != null) {
        IInformationControlCreator creator= revisionInfo.getInformationPresenterControlCreator();
        if (creator != null)
          return creator;
      }
      return new HoverInformationControlCreator(true);
        }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    /**
     * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer)
     */
    public IInformationControlCreator getInformationControlCreator( ISourceViewer sourceViewer )
    {
        return new IInformationControlCreator()
        {
            public IInformationControl createInformationControl( Shell parent )
            {
                return new DefaultInformationControl( parent, SWT.WRAP, null );
            }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

  protected void showStatus(String msg, int msgType) {
    FormMessage.setMessage(mform.getForm().getForm(), msg, msgType);   
  }

  private IInformationControlCreator getPresenterControlCreator(final String commandId) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, SWT.WRAP, 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.