Lines 26-32
Link Here
|
26 |
import org.openide.util.actions.CallableSystemAction; |
26 |
import org.openide.util.actions.CallableSystemAction; |
27 |
import org.openide.util.HelpCtx; |
27 |
import org.openide.util.HelpCtx; |
28 |
import org.openide.util.NbBundle; |
28 |
import org.openide.util.NbBundle; |
|
|
29 |
import org.openide.windows.Mode; |
29 |
import org.openide.windows.Workspace; |
30 |
import org.openide.windows.Workspace; |
|
|
31 |
import org.openide.windows.WindowManager; |
30 |
|
32 |
|
31 |
|
33 |
|
32 |
public class MonitorAction extends CallableSystemAction { |
34 |
public class MonitorAction extends CallableSystemAction { |
Lines 74-80
Link Here
|
74 |
log("Transaction view was created by: " + //NOI18N |
76 |
log("Transaction view was created by: " + //NOI18N |
75 |
"performAction"); //NOI18N |
77 |
"performAction"); //NOI18N |
76 |
} |
78 |
} |
77 |
tv.open(); |
79 |
openTransactionView(tv); |
78 |
} |
80 |
} |
79 |
|
81 |
|
80 |
|
82 |
|
Lines 86-92
Link Here
|
86 |
if(debug) log("runMonitor()"); //NOI18N |
88 |
if(debug) log("runMonitor()"); //NOI18N |
87 |
if (tv == null) |
89 |
if (tv == null) |
88 |
tv = new TransactionView(getController()); |
90 |
tv = new TransactionView(getController()); |
89 |
tv.open(); |
91 |
openTransactionView(tv); |
90 |
} |
92 |
} |
91 |
|
93 |
|
92 |
/** |
94 |
/** |
Lines 98-105
Link Here
|
98 |
workspace.toString()); |
100 |
workspace.toString()); |
99 |
if (tv == null) |
101 |
if (tv == null) |
100 |
tv = new TransactionView(getController()); |
102 |
tv = new TransactionView(getController()); |
101 |
tv.open(workspace); |
103 |
openTransactionView(tv); |
102 |
} |
104 |
} |
|
|
105 |
|
106 |
private static void openTransactionView(TransactionView tv) { |
107 |
WindowManager wm = WindowManager.getDefault(); |
108 |
Mode mode = wm.findMode(tv); |
109 |
|
110 |
if(mode == null) { |
111 |
mode = wm.findMode("debugger"); // NOI18N |
112 |
if(mode != null) { |
113 |
mode.dockInto(tv); |
114 |
} |
115 |
} |
116 |
|
117 |
tv.open(); |
118 |
} |
103 |
|
119 |
|
104 |
/** |
120 |
/** |
105 |
* This method is used by the executor to set the hostname and the |
121 |
* This method is used by the executor to set the hostname and the |