Examples of IInformationProvider


Examples of org.eclipse.jface.text.information.IInformationProvider

      }
    });
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    presenter.setAnchor(AbstractInformationControlManager.ANCHOR_GLOBAL);

    IInformationProvider provider = new ATGModelInformationProvider();
    for (String contentType : getConfiguredContentTypes(sourceViewer)) {
      presenter.setInformationProvider(provider, contentType);
    }
    presenter.setSizeConstraints(50, 30, true, false);
    return presenter;
View Full Code Here

Examples of org.eclipse.jface.text.information.IInformationProvider

    InformationPresenter presenter = new InformationPresenter(
            getHierarchyPresenterControlCreator(sourceViewer));
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    presenter.setAnchor(AbstractInformationControlManager.ANCHOR_GLOBAL);
    IInformationProvider provider = new ScriptElementProvider(getEditor(), doCodeResolve);
    presenter.setInformationProvider(provider, IDocument.DEFAULT_CONTENT_TYPE);

    presenter.setSizeConstraints(50, 20, true, false);
    return presenter;
  }
View Full Code Here

Examples of org.eclipse.jface.text.information.IInformationProvider

      if (annotationHover instanceof IInformationProviderExtension2) // this is undocumented, but left here for backwards compatibility
        controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
      else if (annotationHover instanceof IAnnotationHoverExtension)
        controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();

      IInformationProvider informationProvider= new InformationProvider(new Region(offset, 0), hoverInfo, controlCreator);

      setOffset(offset);
      setAnchor(AbstractInformationControlManager.ANCHOR_RIGHT);
      setMargins(4, 0); // AnnotationBarHoverManager sets (5,0), minus SourceViewer.GAP_SIZE_1
      setInformationProvider(informationProvider, contentType);
View Full Code Here

Examples of org.eclipse.jface.text.information.IInformationProvider

        IInformationControlCreator controlCreator= null;
        if (textHover instanceof IInformationProviderExtension2) // this is conceptually wrong, but left here for backwards compatibility
          controlCreator= ((IInformationProviderExtension2)textHover).getInformationPresenterControlCreator();

        IInformationProvider informationProvider= new FocusedInformationPresenter.InformationProvider(hoverRegion, hoverInfo, controlCreator);

        FocusedInformationPresenter informationPresenter= getInformationPresenter();
        informationPresenter.setOffset(offset);
        informationPresenter.setAnchor(AbstractInformationControlManager.ANCHOR_BOTTOM);
        informationPresenter.setMargins(6, 6); // default values from AbstractInformationControlManager
View Full Code Here

Examples of org.eclipse.jface.text.information.IInformationProvider

              .getInformationPresenterControlCreator();
        else if (annotationHover instanceof IAnnotationHoverExtension)
          controlCreator = ((IAnnotationHoverExtension) annotationHover)
              .getHoverControlCreator();

        final IInformationProvider informationProvider = new InformationProvider(
            new Region(offset, 0), hoverInfo, controlCreator);

        fInformationPresenter.setOffset(offset);
        fInformationPresenter
            .setAnchor(AbstractInformationControlManager.ANCHOR_RIGHT);
View Full Code Here

Examples of org.eclipse.jface.text.information.IInformationProvider

        IInformationControlCreator controlCreator = null;
        if (textHover instanceof IInformationProviderExtension2)
          controlCreator = ((IInformationProviderExtension2) textHover)
              .getInformationPresenterControlCreator();

        final IInformationProvider informationProvider = new InformationProvider(
            hoverRegion, hoverInfo, controlCreator);

        fInformationPresenter.setOffset(offset);
        fInformationPresenter
            .setAnchor(AbstractInformationControlManager.ANCHOR_BOTTOM);
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.