Examples of FocusedInformationPresenter


Examples of org.eclipse.ui.internal.texteditor.FocusedInformationPresenter

        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
        String contentType= TextUtilities.getContentType(sourceViewer.getDocument(), getSourceViewerConfiguration().getConfiguredDocumentPartitioning(getSourceViewer()), offset, true);
        informationPresenter.setInformationProvider(informationProvider, contentType);
        informationPresenter.showInformation();

        return true;

      } catch (BadLocationException e) {
        return false;
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.FocusedInformationPresenter

     * @return the information presenter
     * @since 3.6
     */
    private FocusedInformationPresenter getInformationPresenter() {
      if (fInformationPresenter == null) {
        fInformationPresenter= new FocusedInformationPresenter(getSourceViewer(), getSourceViewerConfiguration());
      }
      return fInformationPresenter;
    }
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.