Examples of BrowserInformationControl

@since 3.2
  • org.erlide.ui.util.eclipse.text.BrowserInformationControl
    eclipse.org/bugs/show_bug.cgi?id=84532
  • @since 3.2

    Examples of org.eclipse.dltk.internal.ui.BrowserInformationControl

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

    Examples of org.eclipse.jdt.internal.ui.text.java.hover.BrowserInformationControl

       
        private IInformationControlCreator defaultCreatorWithHtmlTextPresenter() {
            return
                new IInformationControlCreator() {
                    public IInformationControl createInformationControl(Shell parent) {
                        BrowserInformationControl browserInformationControl = new BrowserInformationControl(parent, SWT.TOOL | SWT.NO_TRIM, SWT.COLOR_GREEN, getTemplate().getName());
                        return browserInformationControl;
                    }
                };
        }
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

      protected IInformationControl doCreateInformationControl(Shell parent) {
        int style= fIsFocusable ? SWT.V_SCROLL | SWT.H_SCROLL : SWT.NONE;
       
        if (BrowserInformationControl.isAvailable(parent)) {
                final int shellStyle= SWT.TOOL | (fIsFocusable ? SWT.RESIZE : SWT.NO_TRIM);
                return new BrowserInformationControl(parent, shellStyle, style, EditorsUI.getTooltipAffordanceString()) {

                  /*
                   * @see org.eclipse.jface.internal.text.html.BrowserInformationControl#setInformation(java.lang.String)
                   */
                  public void setInformation(String content) {
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

        /*
         * @see org.eclipse.jface.internal.text.revisions.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell)
         */
        protected IInformationControl doCreateInformationControl(Shell parent) {
          if (BrowserInformationControl.isAvailable(parent)) {
                  return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, fIsFocusable) {
                    /*
                     * @see org.eclipse.jface.internal.text.html.BrowserInformationControl#setInformation(java.lang.String)
                     * @since 3.3
                     */
                    public void setInformation(String content) {
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

         */
        public IInformationControl doCreateInformationControl(Shell parent) {
          if (BrowserInformationControl.isAvailable(parent)) {
            ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
            String font = PreferenceConstants.APPEARANCE_DOCUMENTATION_FONT;
            BrowserInformationControl iControl = new BrowserInformationControl(
                parent, font, tbm);

            final BackAction backAction = new BackAction(iControl);
            backAction.setEnabled(false);
            tbm.add(backAction);
            final ForwardAction forwardAction = new ForwardAction(iControl);
            tbm.add(forwardAction);
            forwardAction.setEnabled(false);

            final OpenDeclarationAction openDeclarationAction = new OpenDeclarationAction(
                iControl);
            tbm.add(openDeclarationAction);

            // final SimpleSelectionProvider selectionProvider = new
            // SimpleSelectionProvider();
            // OpenExternalBrowserAction openExternalJavadocAction = new
            // OpenExternalBrowserAction(
            // parent.getDisplay(), selectionProvider);
            // selectionProvider
            // .addSelectionChangedListener(openExternalJavadocAction);
            // selectionProvider.setSelection(new StructuredSelection());
            // tbm.add(openExternalJavadocAction);

            IInputChangedListener inputChangeListener = new IInputChangedListener() {
              public void inputChanged(Object newInput) {
                backAction.update();
                forwardAction.update();
                if (newInput == null) {
                } else if (newInput instanceof BrowserInformationControlInput) {
                  BrowserInformationControlInput input = (BrowserInformationControlInput) newInput;
                  Object inputElement = input.getInputElement();
                  boolean isJavaElementInput = inputElement instanceof IModelElement;
                  openDeclarationAction
                      .setEnabled(isJavaElementInput);
                }
              }
            };
            iControl.addInputChangeListener(inputChangeListener);

            tbm.update(true);

            addLinkListener(iControl);

    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

        public IInformationControl doCreateInformationControl(Shell parent) {
          String tooltipAffordanceString = EditorsUI
              .getTooltipAffordanceString();
          if (BrowserInformationControl.isAvailable(parent)) {
            String font = PreferenceConstants.APPEARANCE_DOCUMENTATION_FONT;
            BrowserInformationControl iControl = new BrowserInformationControl(
                parent, font, tooltipAffordanceString) {
              /*
               * @see
               * org.eclipse.jface.text.IInformationControlExtension5#
               * getInformationPresenterControlCreator()
     
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

        /*
         * @see org.eclipse.jface.internal.text.revisions.AbstractReusableInformationControlCreator#doCreateInformationControl(org.eclipse.swt.widgets.Shell)
         */
        protected IInformationControl doCreateInformationControl(Shell parent) {
          if (BrowserInformationControl.isAvailable(parent)) {
                  return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, fIsFocusable) {
                    /**
               * {@inheritDoc}
               *
               * @deprecated use {@link #setInput(Object)}
               */
     
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

          fCreator = new CompletionHoverControlCreator(
              new IInformationControlCreator() {
                public IInformationControl createInformationControl(
                    Shell parent) {
                  if (BrowserInformationControl.isAvailable(parent)) {
                    return new BrowserInformationControl(
                        parent,
                        PreferenceConstants.APPEARANCE_DOCUMENTATION_FONT,
                        true);
                  } else {
                    return new DefaultInformationControl(parent,
    View Full Code Here

    Examples of org.eclipse.jface.internal.text.html.BrowserInformationControl

          fCreator = new CompletionHoverControlCreator(
              new IInformationControlCreator() {
                public IInformationControl createInformationControl(
                    Shell parent) {
                  if (BrowserInformationControl.isAvailable(parent)) {
                    return new BrowserInformationControl(
                        parent,
                        PreferenceConstants.APPEARANCE_DOCUMENTATION_FONT,
                        true);
                  } else {
                    return new DefaultInformationControl(parent,
    View Full Code Here

    Examples of org.erlide.ui.util.eclipse.text.BrowserInformationControl

                @Override
                public IInformationControl createInformationControl(final Shell parent) {
                    if (parent.getText().length() == 0
                            && BrowserInformationControl.isAvailable(parent)) {
                        final BrowserInformationControl info = new BrowserInformationControl(
                                parent, JFaceResources.DIALOG_FONT,
                                EditorsUI.getTooltipAffordanceString()) {
                            @Override
                            public IInformationControlCreator getInformationPresenterControlCreator() {
                                return new PresenterControlCreator(editor);
    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.