com.intellij.openapi.project.Projectcom.intellij.xdebugger.XDebugSession



Project JetBrains/intellij-community in file ...lij.xdebugger.impl.ui.tree.XDebuggerTreePanel.java (2008-03-17)
@@ -1,10 +1,10 @@
 package com.intellij.xdebugger.impl.ui.tree;
 
 import com.intellij.openapi.actionSystem.*;
-import com.intellij.openapi.project.Project;
 import com.intellij.ui.PopupHandler;
 import com.intellij.ui.ScrollPaneFactory;
 import com.intellij.xdebugger.XSourcePosition;
+import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.impl.actions.XDebuggerActions;
 import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider;
 import org.jetbrains.annotations.NonNls;
@@ -22,9 +22,9 @@ public class XDebuggerTreePanel {
   private JPanel myMainPanel;
   private PopupHandler myPopupHandler;
 
-  public XDebuggerTreePanel(final Project project, final XDebuggerEditorsProvider editorsProvider, final XSourcePosition sourcePosition,
+  public XDebuggerTreePanel(final XDebugSession session, final XDebuggerEditorsProvider editorsProvider, final XSourcePosition sourcePosition,
                             @NotNull @NonNls final String popupActionGroupId) {
-    myTree = new XDebuggerTree(project, editorsProvider, sourcePosition);
+    myTree = new XDebuggerTree(session, editorsProvider, sourcePosition);
     myMainPanel = new JPanel(new BorderLayout());
     myMainPanel.add(ScrollPaneFactory.createScrollPane(myTree), BorderLayout.CENTER);
     final ActionManager actionManager = ActionManager.getInstance();
Project JetBrains/intellij-community in file ....xdebugger.impl.evaluate.EvaluationDialogBase.java (2008-03-17)
@@ -1,7 +1,7 @@
 package com.intellij.xdebugger.impl.evaluate;
 
-import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.DialogWrapper;
+import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.XDebuggerBundle;
 import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider;
 import com.intellij.xdebugger.evaluation.XDebuggerEvaluator;
@@ -26,14 +26,14 @@ public abstract class EvaluationDialogBase extends DialogWrapper {
   private XDebuggerTreePanel myTreePanel;
   private final XStackFrame myStackFrame;
 
-  protected EvaluationDialogBase(@NotNull Project project, String title, final XDebuggerEditorsProvider editorsProvider, final XStackFrame stackFrame) {
-    super(project, true);
+  protected EvaluationDialogBase(@NotNull XDebugSession session, String title, final XDebuggerEditorsProvider editorsProvider, final XStackFrame stackFrame) {
+    super(session.getProject(), true);
     myStackFrame = stackFrame;
     setModal(false);
     setTitle(title);
     setOKButtonText(XDebuggerBundle.message("xdebugger.button.evaluate"));
     setCancelButtonText(XDebuggerBundle.message("xdebugger.evaluate.dialog.close"));
-    myTreePanel = new XDebuggerTreePanel(project, editorsProvider, stackFrame.getSourcePosition(), XDebuggerActions.EVALUATE_DIALOG_TREE_POPUP_GROUP);
+    myTreePanel = new XDebuggerTreePanel(session, editorsProvider, stackFrame.getSourcePosition(), XDebuggerActions.EVALUATE_DIALOG_TREE_POPUP_GROUP);
     myResultPanel.add(myTreePanel.getMainPanel(), BorderLayout.CENTER);
     init();
   }
Project JetBrains/intellij-community in file ...ntellij.xdebugger.impl.ui.tree.XInspectDialog.java (2008-03-17)
@@ -1,15 +1,15 @@
 package com.intellij.xdebugger.impl.ui.tree;
 
-import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.DialogWrapper;
+import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.XDebuggerBundle;
 import com.intellij.xdebugger.XSourcePosition;
+import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider;
 import com.intellij.xdebugger.frame.XValue;
 import com.intellij.xdebugger.impl.actions.XDebuggerActions;
 import com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl;
-import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider;
-import org.jetbrains.annotations.Nullable;
 import org.jetbrains.annotations.NonNls;
+import org.jetbrains.annotations.Nullable;
 
 import javax.swing.*;
 
@@ -19,11 +19,11 @@ import javax.swing.*;
 public class XInspectDialog extends DialogWrapper {
   private XDebuggerTreePanel myTreePanel;
 
-  public XInspectDialog(final Project project, XDebuggerEditorsProvider editorsProvider, XSourcePosition sourcePosition, String nodeName, XValue value) {
-    super(project, false);
+  public XInspectDialog(final XDebugSession session, XDebuggerEditorsProvider editorsProvider, XSourcePosition sourcePosition, String nodeName, XValue value) {
+    super(session.getProject(), false);
     setTitle(XDebuggerBundle.message("inspect.value.dialog.title", nodeName));
     setModal(false);
-    myTreePanel = new XDebuggerTreePanel(project, editorsProvider, sourcePosition, XDebuggerActions.INSPECT_TREE_POPUP_GROUP);
+    myTreePanel = new XDebuggerTreePanel(session, editorsProvider, sourcePosition, XDebuggerActions.INSPECT_TREE_POPUP_GROUP);
     XDebuggerTree tree = myTreePanel.getTree();
     tree.setRoot(new XValueNodeImpl(tree, null, value), true);
     init();
Project JetBrains/intellij-community in file ...ger.impl.evaluate.XExpressionEvaluationDialog.java (2008-03-17)
@@ -1,16 +1,13 @@
 package com.intellij.xdebugger.impl.evaluate;
 
-import com.intellij.openapi.project.Project;
+import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.XDebuggerBundle;
-import com.intellij.xdebugger.XSourcePosition;
 import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider;
 import com.intellij.xdebugger.evaluation.XDebuggerEvaluator;
-import com.intellij.xdebugger.frame.XSuspendContext;
 import com.intellij.xdebugger.frame.XStackFrame;
 import com.intellij.xdebugger.impl.ui.XDebuggerEditorBase;
 import com.intellij.xdebugger.impl.ui.XDebuggerExpressionComboBox;
 import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
 
 import javax.swing.*;
 import java.awt.*;
@@ -21,10 +18,10 @@ import java.awt.*;
 public class XExpressionEvaluationDialog extends EvaluationDialogBase {
   private XDebuggerExpressionComboBox myExpressionComboBox;
 
-  public XExpressionEvaluationDialog(@NotNull final Project project, XDebuggerEditorsProvider editorsProvider, @NotNull XStackFrame stackFrame) {
-    super(project, XDebuggerBundle.message("xdebugger.dialog.title.evaluate.expression"), editorsProvider, stackFrame);
+  public XExpressionEvaluationDialog(@NotNull final XDebugSession session, XDebuggerEditorsProvider editorsProvider, @NotNull XStackFrame stackFrame) {
+    super(session, XDebuggerBundle.message("xdebugger.dialog.title.evaluate.expression"), editorsProvider, stackFrame);
     getInputPanel().add(new JLabel(XDebuggerBundle.message("xdebugger.evaluate.label.expression")), BorderLayout.WEST);
-    myExpressionComboBox = new XDebuggerExpressionComboBox(project, editorsProvider, "evaluateExpression", stackFrame.getSourcePosition());
+    myExpressionComboBox = new XDebuggerExpressionComboBox(session.getProject(), editorsProvider, "evaluateExpression", stackFrame.getSourcePosition());
     myExpressionComboBox.getComboBox().setMinimumAndPreferredWidth(250);
     getInputPanel().add(myExpressionComboBox.getComponent(), BorderLayout.CENTER);
     myExpressionComboBox.selectAll();
Project JetBrains/intellij-community in file ...debugger.impl.frame.XDebugViewSessionListener.java (2014-08-08)
@@ -15,8 +15,8 @@
  */
 package com.intellij.xdebugger.impl.frame;
 
-import com.intellij.openapi.project.Project;
 import com.intellij.ui.AppUIUtil;
+import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.XDebugSessionAdapter;
 import org.jetbrains.annotations.NotNull;
 
@@ -25,18 +25,18 @@ import org.jetbrains.annotations.NotNull;
 */
 public class XDebugViewSessionListener extends XDebugSessionAdapter {
   private final XDebugView myDebugView;
-  private final Project myProject;
+  private final XDebugSession session;
 
-  public XDebugViewSessionListener(@NotNull XDebugView debugView, @NotNull Project project) {
+  public XDebugViewSessionListener(@NotNull XDebugView debugView, @NotNull XDebugSession session) {
     myDebugView = debugView;
-    myProject = project;
+    this.session = session;
   }
 
   private void onSessionEvent(final @NotNull XDebugView.SessionEvent event) {
-    AppUIUtil.invokeLaterIfProjectAlive(myProject, new Runnable() {
+    AppUIUtil.invokeLaterIfProjectAlive(session.getProject(), new Runnable() {
       @Override
       public void run() {
-        myDebugView.processSessionEvent(event);
+        myDebugView.processSessionEvent(event, session);
       }
     });
   }