Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IInformationControlCreator


   * Creates an <code>IInformationControlCreator</code> to be used to display context information.
   *
   * @return an <code>IInformationControlCreator</code> to be used to display context information
   */
  private IInformationControlCreator getInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, false);
      }
    };
  }
View Full Code Here


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

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

  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

  }

  public IInformationControlCreator getInformationControlCreator() {
    if (fCreator == null) {
      fCreator = new CompletionHoverControlCreator(
          new IInformationControlCreator() {
            public IInformationControl createInformationControl(
                Shell parent) {
              if (BrowserInformationControl.isAvailable(parent)) {
                return new BrowserInformationControl(
                    parent,
View Full Code Here

    this.fProjectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning");
    this.fProjectionSupport
        .addSummarizableAnnotationType("org.cfeclipse.cfml.occurrenceAnnotation");
   
    this.fProjectionSupport.setHoverControlCreator(new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell shell) {

                IInformationControl returnIInformationControl = new DefaultInformationControl(
                        shell);
        return returnIInformationControl;
View Full Code Here

   * @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,new InformationPresenter());
      }
    };
  }
View Full Code Here

  public abstract IInformationControlCreator getHoverControlCreator();
 
 
  @Override
  public IInformationControlCreator getInformationPresenterControlCreator() {
    return new IInformationControlCreator() {
      @Override
      public IInformationControl createInformationControl(Shell shell) {
        return new DefaultInformationControl(shell, true);
      }
    };
View Full Code Here

    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

                        context, region, getRelevance(template, prefix)));
        }

        // Collections.sort(matches, comparator);

        final IInformationControlCreator controlCreator = getInformationControlCreator();
        for (TemplateProposal proposal : matches) {
            proposal.setInformationControlCreator(controlCreator);
        }

        return matches.toArray(new ICompletionProposal[matches.size()]);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IInformationControlCreator

Copyright © 2018 www.massapicom. 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.