Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IInformationControlCreator


    return section;
  } // createAEConfigSection

  private IInformationControlCreator getPresenterControlCreator(final String commandId) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DDEInformationControl(parent, SWT.TOOL | SWT.NO_TRIM, 0);
      }
    };
  }
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

    projectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error");
    projectionSupport
        .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;
View Full Code Here

    }
    return res;
  }

  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

   * 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

   */
  @Override
  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);
View Full Code Here

    @Override
    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;
            }
        });
View Full Code Here

  public IEditorPart getEditor() {
    return fEditor;
  }

  private IInformationControlCreator getInformationControlCreator() {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        return new DefaultInformationControl(parent, new HTMLTextPresenter());
      }
    };
  }
View Full Code Here

    return fCodeScanner.affectsBehavior(event) || fStringScanner.affectsBehavior(event)
            || fCommentScanner.affectsBehavior(event);
  }

  private IInformationControlCreator getHierarchyPresenterControlCreator(ISourceViewer sourceViewer) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE;
        int treeStyle = SWT.V_SCROLL | SWT.H_SCROLL;
        return new RutaHierarchyInformationControl(parent, shellStyle, treeStyle);
      }
View Full Code Here

  }

  @Override
  protected IInformationControlCreator getOutlinePresenterControlCreator(
          ISourceViewer sourceViewer, final String commandId) {
    return new IInformationControlCreator() {
      public IInformationControl createInformationControl(Shell parent) {
        int shellStyle = SWT.RESIZE;
        int treeStyle = SWT.V_SCROLL | SWT.H_SCROLL;
        return new RutaOutlineInformationControl(parent, shellStyle, treeStyle, commandId);
      }
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.