Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.DefaultInformationControl


     * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
     */
    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


   
    IInformationControlCreator informationControlCreator= new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell shell) {
        boolean cutDown= false;
        int style= cutDown ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL);
        return new DefaultInformationControl(shell, SWT.RESIZE | SWT.TOOL, style, new HTMLTextPresenter(cutDown));
      }
    };
   
    fInformationPresenter= new InformationPresenter(informationControlCreator);
    fInformationPresenter.setSizeConstraints(60, 10, true, true);
View Full Code Here

  }

  private IInformationControlCreator getInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter());
      }
    };
  }
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

   */
  final public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    // used by hover help
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
View Full Code Here

  private IInformationControlCreator getInformationPresenterControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE | SWT.TOOL;
        int style = SWT.V_SCROLL | SWT.H_SCROLL;
        return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
      }
    };
  }
View Full Code Here

   * @return the information control creator
   */
  private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
View Full Code Here

   */
  final public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) {
    // used by hover help
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(true));
      }
    };
  }
View Full Code Here

  private IInformationControlCreator getInformationPresenterControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE | SWT.TOOL;
        int style = SWT.V_SCROLL | SWT.H_SCROLL;
        return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false));
      }
    };
  }
View Full Code Here

   * @return the information control creator
   */
  private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter(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.