Examples of BrowserInformationControlInput


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

        fInfoControl.setInput(next);
      }
    }

    public void update() {
      BrowserInformationControlInput current = fInfoControl.getInput();

      if (current != null && current.getNext() != null) {
        setToolTipText(Messages
            .format(PHPHoverMessages.JavadocHover_forward_toElement_toolTip,
                BasicElementLabels.getJavaElementName(current
                    .getNext().getInputName())));
        setEnabled(true);
      } else {
        setToolTipText(PHPHoverMessages.JavadocHover_forward_toolTip);
        setEnabled(false);
View Full Code Here

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

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

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

      update();
    }

    public void run() {
      BrowserInformationControlInput previous = (BrowserInformationControlInput) fInfoControl
          .getInput().getPrevious();
      if (previous != null) {
        fInfoControl.setInput(previous);
      }
    }
View Full Code Here

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

        fInfoControl.setInput(previous);
      }
    }

    public void update() {
      BrowserInformationControlInput current = fInfoControl.getInput();

      if (current != null && current.getPrevious() != null) {
        BrowserInput previous = current.getPrevious();
        setToolTipText(Messages.format(
            PHPHoverMessages.JavadocHover_back_toElement_toolTip,
            BasicElementLabels.getJavaElementName(previous
                .getInputName())));
        setEnabled(true);
View Full Code Here

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

      update();
    }

    public void run() {
      BrowserInformationControlInput next = (BrowserInformationControlInput) fInfoControl
          .getInput().getNext();
      if (next != null) {
        fInfoControl.setInput(next);
      }
    }
View Full Code Here

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

        /*
         * @see org.eclipse.jface.action.Action#run()
         */
        @Override
        public void run() {
            final BrowserInformationControlInput infoInput = fInfoControl.getInput();
            fInfoControl.notifyDelayedInputChange(null);
            fInfoControl.dispose();
            // TODO: add hover location to editor navigation history?
            try {
                final Object element = infoInput.getInputElement();
                if (element instanceof IErlElement) {
                    EditorUtility.openElementInEditor(element, true);
                } else if (element instanceof OpenResult) {
                    final OpenResult or = (OpenResult) element;
                    try {
View Full Code Here

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

    @Override
    public void changing(final LocationEvent event) {
        ErlBrowserInformationControlInput input = null;
        if (control != null) {
            final BrowserInformationControlInput input2 = control.getInput();
            if (input2 instanceof ErlBrowserInformationControlInput) {
                input = (ErlBrowserInformationControlInput) input2;
            }
        } else if (edocView != null) {
            input = edocView.getInput();
View Full Code Here

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

                        backAction.update();
                        forwardAction.update();
                        if (newInput == null) {
                            selectionProvider.setSelection(new StructuredSelection());
                        } else if (newInput instanceof BrowserInformationControlInput) {
                            final BrowserInformationControlInput input = (BrowserInformationControlInput) newInput;
                            final Object inputElement = input.getInputElement();
                            selectionProvider.setSelection(new StructuredSelection(
                                    inputElement));
                            final boolean hasInputElement = inputElement != null;
                            showInEdocViewAction.setEnabled(hasInputElement);
                            openDeclarationAction.setEnabled(hasInputElement);
View Full Code Here

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

            update();
        }

        @Override
        public void run() {
            final BrowserInformationControlInput previous = (BrowserInformationControlInput) fInfoControl
                    .getInput().getPrevious();
            if (previous != null) {
                fInfoControl.setInput(previous);
            }
        }
View Full Code Here

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

                fInfoControl.setInput(previous);
            }
        }

        public void update() {
            final BrowserInformationControlInput current = fInfoControl.getInput();

            if (current != null && current.getPrevious() != null) {
                final BrowserInput previous = current.getPrevious();
                setToolTipText(String.format("Go back to %s", previous.getInputName()));
                setEnabled(true);
            } else {
                setToolTipText("");
                setEnabled(false);
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.