Examples of IInformationProvider


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

      InformationPresenter presenter=
        new InformationPresenter(new HTMLInformationControlCreator(500,250));
      presenter.setDocumentPartitioning(editor.getViewerConfiguration().getConfiguredDocumentPartitioning(editor.getViewer()));

      IInformationProvider provider= new TMLInformationProvider();
     
      String[] contentTypes = editor.getViewerConfiguration().getConfiguredContentTypes(editor.getViewer());
      for (int i= 0; i < contentTypes.length; i++) {
        presenter.setInformationProvider(provider, contentTypes[i]);
      }
View Full Code Here

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

            if (textHover instanceof IInformationProviderExtension2) {
                controlCreator = ((IInformationProviderExtension2) textHover)
                        .getInformationPresenterControlCreator();
            }

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

            editor.fInformationPresenter.setOffset(offset);
            editor.fInformationPresenter
                    .setDocumentPartitioning(IErlangPartitions.ERLANG_PARTITIONING);
View Full Code Here

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

      return null;
   
    InformationPresenter presenter = new InformationPresenter(getHierarchyPresenterControlCreator());
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    presenter.setAnchor(AbstractInformationControlManager.ANCHOR_GLOBAL);
    @SuppressWarnings("restriction")
    IInformationProvider provider = new org.eclipse.dltk.internal.ui.text.ScriptElementProvider(getEditor(), doCodeResolve);
//    IInformationProvider provider = new ScriptElementProvider(getEditor(), doCodeResolve);
   
    presenter.setInformationProvider(provider, DeePartitions.DEE_CODE);
   
View Full Code Here

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

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

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

        fInformationPresenter.setOffset(offset);
        fInformationPresenter.setAnchor(AbstractInformationControlManager.ANCHOR_BOTTOM);
        fInformationPresenter.setMargins(6, 6); // default values from AbstractInformationControlManager
        String contentType= TextUtilities.getContentType(sourceViewer.getDocument(), getSourceViewerConfiguration().getConfiguredDocumentPartitioning(getSourceViewer()), offset, true);
View Full Code Here

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

        if (annotationHover instanceof IInformationProviderExtension2)
          controlCreator= ((IInformationProviderExtension2) annotationHover).getInformationPresenterControlCreator();
        else if (annotationHover instanceof IAnnotationHoverExtension)
          controlCreator= ((IAnnotationHoverExtension) annotationHover).getHoverControlCreator();
       
        IInformationProvider informationProvider= new InformationProvider(new Region(offset, 0), hoverInfo, controlCreator);

        fInformationPresenter.setOffset(offset);
        fInformationPresenter.setAnchor(AbstractInformationControlManager.ANCHOR_RIGHT);
        fInformationPresenter.setMargins(4, 0); // AnnotationBarHoverManager sets (5,0), minus SourceViewer.GAP_SIZE_1
        fInformationPresenter.setInformationProvider(informationProvider, contentType);
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

    // add information providers for each partition type
    String[] types = getConfiguredContentTypes(sourceViewer);
    for (int i = 0; i < types.length; i++) {
      String type = types[i];

      IInformationProvider provider = getInformationProvider(sourceViewer, type);
      if (provider != null) {
        presenter.setInformationProvider(provider, type);
      }
    }
View Full Code Here

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

    // add information providers for each partition type
    String[] types = getConfiguredContentTypes(sourceViewer);
    for (int i = 0; i < types.length; i++) {
      String type = types[i];

      IInformationProvider provider = getInformationProvider(sourceViewer, type);
      if (provider != null) {
        presenter.setInformationProvider(provider, type);
      }
    }
View Full Code Here

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

    if (cfg != null) {
      presenter = new InformationPresenter(getOutlinePresenterControlCreator(cfg));
      presenter.setDocumentPartitioning(config.getConfiguredDocumentPartitioning(sourceViewer));
      presenter.setAnchor(AbstractInformationControlManager.ANCHOR_GLOBAL);
      IInformationProvider provider = new SourceInfoProvider(this);
      String[] contentTypes = config.getConfiguredContentTypes(sourceViewer);
      for (int i = 0; i < contentTypes.length; i++) {
        presenter.setInformationProvider(provider, contentTypes[i]);
      }
      presenter.setSizeConstraints(50, 20, true, false);
View Full Code Here

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

    if (cfg != null) {
      presenter = new InformationPresenter(getOutlinePresenterControlCreator(cfg));
      presenter.setDocumentPartitioning(config.getConfiguredDocumentPartitioning(sourceViewer));
      presenter.setAnchor(AbstractInformationControlManager.ANCHOR_GLOBAL);
      IInformationProvider provider = new SourceInfoProvider(this);
      String[] contentTypes = config.getConfiguredContentTypes(sourceViewer);
      for (int i = 0; i < contentTypes.length; i++) {
        presenter.setInformationProvider(provider, contentTypes[i]);
      }
      presenter.setSizeConstraints(50, 20, true, false);
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.