| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 19 | 19 | */ | |
| 20 | 20 | ||
| 21 | - package processing.mode.java.debug; | ||
| 21 | + package processing.mode.java; | ||
| 22 | 22 | ||
| 23 | 23 | import java.awt.Graphics; | |
| 24 | 24 | import java.awt.Image; | |
@@ -31,9 +31,10 @@ | |||
| 31 | 31 | import processing.app.Editor; | |
| 32 | 32 | import processing.app.Language; | |
| 33 | 33 | import processing.app.Toolkit; | |
| 34 | - import processing.mode.java.JavaToolbar; | ||
| 34 | + | ||
| 35 | 35 | import processing.mode.java.pdex.XQConsoleToggle; | |
| 36 | 36 | ||
| 37 | + | ||
| 37 | 38 | /** | |
| 38 | 39 | * Custom toolbar for the editor window. Preserves original button numbers | |
| 39 | 40 | * ({@link JavaToolbar#RUN}, {@link JavaToolbar#STOP}, {@link JavaToolbar#NEW}, | |
@@ -190,7 +191,7 @@ public static String getTitle(int id, boolean shift) { | |||
| 190 | 191 | @Override | |
| 191 | 192 | public void handlePressed(MouseEvent e, int idx) { | |
| 192 | 193 | boolean shift = e.isShiftDown(); | |
| 193 | - DebugEditor deditor = (DebugEditor) editor; | ||
| 194 | + JavaEditor deditor = (JavaEditor) editor; | ||
| 194 | 195 | int id = buttonId(idx); // convert index/position to button id | |
| 195 | 196 | ||
| 196 | 197 | switch (id) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 19 | 19 | */ | |
| 20 | 20 | ||
| 21 | - package processing.mode.java.debug; | ||
| 21 | + package processing.mode.java; | ||
| 22 | 22 | ||
| 23 | 23 | import com.sun.jdi.*; | |
| 24 | 24 | import com.sun.jdi.event.*; | |
@@ -41,21 +41,28 @@ | |||
| 41 | 41 | ||
| 42 | 42 | import processing.app.Sketch; | |
| 43 | 43 | import processing.app.SketchCode; | |
| 44 | - import processing.mode.java.JavaBuild; | ||
| 44 | + import processing.mode.java.debug.ArrayFieldNode; | ||
| 45 | + import processing.mode.java.debug.ClassLoadListener; | ||
| 46 | + import processing.mode.java.debug.FieldNode; | ||
| 47 | + import processing.mode.java.debug.LineBreakpoint; | ||
| 48 | + import processing.mode.java.debug.LineID; | ||
| 49 | + import processing.mode.java.debug.LocalVariableNode; | ||
| 50 | + import processing.mode.java.debug.VariableInspector; | ||
| 51 | + import processing.mode.java.debug.VariableNode; | ||
| 45 | 52 | import processing.mode.java.pdex.VMEventListener; | |
| 46 | 53 | import processing.mode.java.pdex.VMEventReader; | |
| 47 | 54 | import processing.mode.java.runner.Runner; | |
| 48 | 55 | ||
| 49 | 56 | ||
| 50 | 57 | /** | |
| 51 | - * Main controller class for debugging mode. Mainly works with DebugEditor as | ||
| 58 | + * Main controller class for debugging mode. Mainly works with JavaEditor as | ||
| 52 | 59 | * the corresponding "view". Uses DebugRunner to launch a VM. | |
| 53 | 60 | * | |
| 54 | 61 | * @author Martin Leopold <m@martinleopold.com> | |
| 55 | 62 | */ | |
| 56 | 63 | public class Debugger implements VMEventListener { | |
| 57 | 64 | ||
| 58 | - protected DebugEditor editor; // editor window, acting as main view | ||
| 65 | + protected JavaEditor editor; // editor window, acting as main view | ||
| 59 | 66 | protected Runner runtime; // the runtime, contains debuggee VM | |
| 60 | 67 | protected boolean started = false; // debuggee vm has started, VMStartEvent received, main class loaded | |
| 61 | 68 | protected boolean paused = false; // currently paused at breakpoint or step | |
@@ -75,7 +82,7 @@ public class Debugger implements VMEventListener { | |||
| 75 | 82 | * | |
| 76 | 83 | * @param editor The Editor that will act as primary view | |
| 77 | 84 | */ | |
| 78 | - public Debugger(DebugEditor editor) { | ||
| 85 | + public Debugger(JavaEditor editor) { | ||
| 79 | 86 | this.editor = editor; | |
| 80 | 87 | } | |
| 81 | 88 | ||
@@ -97,7 +104,7 @@ public VirtualMachine vm() { | |||
| 97 | 104 | * | |
| 98 | 105 | * @return the editor object | |
| 99 | 106 | */ | |
| 100 | - public DebugEditor editor() { | ||
| 107 | + public JavaEditor editor() { | ||
| 101 | 108 | return editor; | |
| 102 | 109 | } | |
| 103 | 110 | ||
@@ -1057,7 +1064,7 @@ protected List<VariableNode> getFields(Value value, int depth, int maxDepth, boo | |||
| 1057 | 1064 | * @param maxDepth max recursion depth. 0 will give only direct children | |
| 1058 | 1065 | * @return list of child fields of the given value | |
| 1059 | 1066 | */ | |
| 1060 | - protected List<VariableNode> getFields(Value value, int maxDepth, boolean includeInherited) { | ||
| 1067 | + public List<VariableNode> getFields(Value value, int maxDepth, boolean includeInherited) { | ||
| 1061 | 1068 | return getFields(value, 0, maxDepth, includeInherited); | |
| 1062 | 1069 | } | |
| 1063 | 1070 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments