Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.DefaultInformationControl


            Shell parent) {
          if (BrowserInformationControl.isAvailable(parent))
            return new BrowserInformationControl(parent,
                JFaceResources.DIALOG_FONT, true);
          else
            return new DefaultInformationControl(parent,
                new HTMLTextPresenter(false));
        }
      };
    }
    return fPresenterControlCreator;
View Full Code Here


        ContentAssistant assistant = new ContentAssistant();

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

        processor.setFile(file);
        // Set this processor for each supported content type
View Full Code Here

        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning");
    projectionSupport
        .setHoverControlCreator(new IInformationControlCreator() {
          public IInformationControl createInformationControl(
              Shell shell) {
            return new DefaultInformationControl(shell, SWT.TOOL
                | SWT.NO_TRIM | getOrientation(), SWT.NONE,
                null, EditorsUI.getTooltipAffordanceString());
          }
        });
    projectionSupport
        .setInformationPresenterControlCreator(new IInformationControlCreator() {
          public IInformationControl createInformationControl(
              Shell shell) {
            int shellStyle = SWT.RESIZE | SWT.TOOL
                | getOrientation();
            int style = SWT.V_SCROLL | SWT.H_SCROLL;
            return new DefaultInformationControl(shell, shellStyle,
                style, null);
          }
        });
    projectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
View Full Code Here

  }

  public IInformationControlCreator getHoverControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, SWT.NONE,
            new HTMLTextPresenter(true), EditorsUI
                .getTooltipAffordanceString());
      }
    };
  }
View Full Code Here

   * Default control creator for the information control replacer.
   * @since 3.4
   */
  private static class DefaultPresenterControlCreator extends AbstractReusableInformationControlCreator {
    public IInformationControl doCreateInformationControl(Shell shell) {
      return new DefaultInformationControl(shell, true);
    }
View Full Code Here

  /**
   * Default control creator.
   */
  protected static class DefaultInformationControlCreator extends AbstractReusableInformationControlCreator {
    public IInformationControl doCreateInformationControl(Shell shell) {
      return new DefaultInformationControl(shell, true);
    }
View Full Code Here

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

  public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    if(_assistant==null){
      _assistant = new ContentAssistant();
      _assistant.setInformationControlCreator(new IInformationControlCreator() {
        public IInformationControl createInformationControl(Shell parent) {
          return new DefaultInformationControl(parent);
        }});
      _assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
      _assistant.enableAutoInsert(true);
     
      HTMLAssistProcessor processor = getAssistProcessor();
View Full Code Here

  /**
   * Default control creator.
   */
  protected static class DefaultInformationControlCreator extends AbstractReusableInformationControlCreator {
    public IInformationControl doCreateInformationControl(Shell shell) {
      return new DefaultInformationControl(shell, true);
    }
View Full Code Here

    public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
        // TODO Preferences
        ContentAssistant contentAssistant = new ContentAssistant();
        contentAssistant.setInformationControlCreator(new IInformationControlCreator() {
            public IInformationControl createInformationControl(Shell parent) {
                DefaultInformationControl control = new DefaultInformationControl(parent, true);
                return control;
            }
        });
        contentAssistant.setContentAssistProcessor(new NodeContentAssistant(), IDocument.DEFAULT_CONTENT_TYPE);
        contentAssistant.enableAutoActivation(true);
View Full Code Here

TOP

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

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.