Examples of IInformationControlCreator


Examples of org.eclipse.jface.text.IInformationControlCreator

    }

    @Override
    public IInformationControlCreator getInformationControlCreator(
            final ISourceViewer sourceViewer) {
        return new IInformationControlCreator() {

            @Override
            public IInformationControl createInformationControl(final Shell parent) {
                if (parent.getText().length() == 0
                        && BrowserInformationControl.isAvailable(parent)) {
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    }

    @Override
    public IInformationControlCreator getInformationControlCreator(
            final ISourceViewer sourceViewer) {
        return new IInformationControlCreator() {

            @Override
            public IInformationControl createInformationControl(final Shell parent) {
                return new DefaultInformationControl(parent,
                        EditorsUI.getTooltipAffordanceString(),
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

                .setInformationControlCreator(getQuickAssistAssistantInformationControlCreator());
        return assistant;
    }

    private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {
        return new IInformationControlCreator() {
            @Override
            public IInformationControl createInformationControl(final Shell parent) {
                final String affordance = getAdditionalInfoAffordanceString();
                return new DefaultInformationControl(parent, affordance);
            }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    @Override
    protected ICompletionProposal createProposal(final Template template,
            final TemplateContext context, final IRegion region, final int relevance) {
        final ErlTemplateProposal p = new ErlTemplateProposal(template, context, region,
                getImage(template), relevance);
        p.setInformationControlCreator(new IInformationControlCreator() {

            @Override
            public IInformationControl createInformationControl(final Shell parent) {
                return new SourceViewerInformationControl(parent,
                        PreferenceConstants.EDITOR_TEXT_FONT);
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    @Override
    public void createPartControl(final Composite parent) {
        super.createPartControl(parent);

        final IInformationControlCreator informationControlCreator = getSourceViewerConfiguration()
                .getInformationControlCreator(getSourceViewer());
        fInformationPresenter = new InformationPresenter(informationControlCreator);
        // sizes: see org.eclipse.jface.text.TextViewer.TEXT_HOVER_*_CHARS
        fInformationPresenter.setSizeConstraints(100, 12, true, true);
        fInformationPresenter.install(getSourceViewer());
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

            if (textHover instanceof ITextHoverExtension2) {
                ((ITextHoverExtension2) textHover).getHoverInfo2(sourceViewer,
                        hoverRegion);
            }

            IInformationControlCreator controlCreator = null;
            if (textHover instanceof IInformationProviderExtension2) {
                controlCreator = ((IInformationProviderExtension2) textHover)
                        .getInformationPresenterControlCreator();
            }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
        // Create content assistant
        ContentAssistant assistant = new ContentAssistant();

        // required to display additional info
        assistant.setInformationControlCreator(new IInformationControlCreator() {
            public IInformationControl createInformationControl(Shell parent) {
                return new DefaultInformationControl(parent, true);
            }
        });
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
        // Create content assistant
        ContentAssistant assistant = new ContentAssistant();

        // required to display additional info
        assistant.setInformationControlCreator(new IInformationControlCreator() {
            public IInformationControl createInformationControl(Shell parent) {
                return new DefaultInformationControl(parent);
            }
        });
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

    return informationPresenter;
  }
 
  @Override
  public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      @Override
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, false);
      }
    };
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlCreator

  }
 
  // ================
 
  protected IInformationControlCreator getHierarchyPresenterControlCreator() {
    return new IInformationControlCreator() {
      @Override
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE;
        int treeStyle = SWT.V_SCROLL | SWT.H_SCROLL;
        return new HierarchyInformationControl(parent, shellStyle, treeStyle) {
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.