Examples of DebugPopup


Examples of org.eclipse.debug.ui.DebugPopup

      } else {
        textEditor = null;
        originalSelection = null;
      }
      Shell shell = editorPart.getSite().getShell();
      DebugPopup displayPopup =
          new InspectPopupDialog(shell, getPopupAnchor(textWidget), ACTION_DEFINITION_ID,
              expression) {
            @Override
            public boolean close() {
              boolean returnValue = super.close();
              if (textEditor != null && originalSelection != null) {
                textEditor.getSelectionProvider().setSelection(originalSelection);
              }
              return returnValue;
            }
          };
      displayPopup.open();
    }
View Full Code Here

Examples of org.eclipse.debug.ui.DebugPopup

      } else {
        textEditor = null;
        originalSelection = null;
      }
      Shell shell = editorPart.getSite().getShell();
      DebugPopup displayPopup =
          new InspectPopupDialog(shell, getPopupAnchor(textWidget), ACTION_DEFINITION_ID,
              expression) {
            @Override
            public boolean close() {
              boolean returnValue = super.close();
              if (textEditor != null && originalSelection != null) {
                textEditor.getSelectionProvider().setSelection(originalSelection);
              }
              return returnValue;
            }
          };
      displayPopup.open();
    }
View Full Code Here

Examples of org.eclipse.debug.ui.DebugPopup

    IWorkbenchPart part = getTargetPart();
    if (part instanceof ITextEditor) {
      fTextEditor = (ITextEditor) part;
      fSelectionBeforeEvaluation = getTargetSelection();
    }
    DebugPopup displayPopup = new InspectPopupDialog(getShell(),
        getPopupAnchor(textWidget), ACTION_DEFININITION_ID, expression) {
      IContextActivation contextActivation;

      @Override
      protected Control createDialogArea(Composite parent) {
        Control result = super.createDialogArea(parent);
        if (fTextEditor != null) {
          IContextService contextService = (IContextService) fTextEditor
              .getSite().getService(IContextService.class);
          contextActivation = contextService
              .activateContext("org.eclipse.php.debug.ui.xdebug"); //$NON-NLS-1$
        }
        return result;
      }

      public boolean close() {
        boolean returnValue = super.close();
        if (fTextEditor != null && fSelectionBeforeEvaluation != null) {
          fTextEditor.getSelectionProvider().setSelection(
              fSelectionBeforeEvaluation);
          fTextEditor = null;
          fSelectionBeforeEvaluation = null;
        }
        // if (fTextEditor != null) {
        // IContextService contextService = (IContextService)
        // fTextEditor
        // .getSite().getService(IContextService.class);
        // contextService.deactivateContext(contextActivation);
        // }
        return returnValue;
      }
    };
    displayPopup.open();
  }
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.