Skip to content

Commit d3d3627

Browse files
committed
demoting the debug tray to be a variable inspector
1 parent e231b2d commit d3d3627

File tree

3 files changed

+139
-169
lines changed

3 files changed

+139
-169
lines changed

java/src/processing/mode/java/Debugger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ protected void updateVariableInspector(ThreadReference t) {
876876
// TODO: needs to be handled in a better way:
877877
log(Level.WARNING, "call stack empty");
878878
} else {
879-
final DebugTray vi = editor.variableInspector();
879+
final VariableInspector vi = editor.variableInspector();
880880
// first get data
881881
final List<DefaultMutableTreeNode> stackTrace = getStackTrace(t);
882882
final List<VariableNode> locals = getLocals(t, 0);

java/src/processing/mode/java/JavaEditor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class JavaEditor extends Editor {
6868
JCheckBoxMenuItem enableDebug;
6969

7070
protected Debugger debugger;
71-
protected DebugTray tray;
71+
protected VariableInspector tray;
7272

7373
// private EditorToolbar javaToolbar;
7474
// private DebugToolbar debugToolbar;
@@ -91,7 +91,7 @@ protected JavaEditor(Base base, String path, EditorState state, Mode mode) {
9191

9292
jmode = (JavaMode) mode;
9393
debugger = new Debugger(this);
94-
tray = new DebugTray(this);
94+
tray = new VariableInspector(this);
9595

9696
// Add show usage option
9797
JMenuItem showUsageItem = new JMenuItem("Show Usage...");
@@ -2042,7 +2042,7 @@ public void actionPerformed(ActionEvent e) {
20422042
* Access variable inspector window.
20432043
* @return the variable inspector object
20442044
*/
2045-
public DebugTray variableInspector() {
2045+
public VariableInspector variableInspector() {
20462046
return tray;
20472047
}
20482048

0 commit comments

Comments
 (0)