| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,9 +100,11 @@ public DebugTray(final JavaEditor editor) { | |||
| 100 | 100 | this.editor = editor; | |
| 101 | 101 | editor.addComponentListener(new EditorFollower()); | |
| 102 | 102 | ||
| 103 | - setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); | ||
| 104 | - add(createToolbar()); | ||
| 105 | - add(createScrollPane()); | ||
| 103 | + //setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); | ||
| 104 | + Box box = Box.createVerticalBox(); | ||
| 105 | + box.add(createToolbar()); | ||
| 106 | + box.add(createScrollPane()); | ||
| 107 | + getContentPane().add(box); | ||
| 106 | 108 | pack(); | |
| 107 | 109 | ||
| 108 | 110 | /* | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2174,9 +2174,11 @@ protected void setCode(SketchCode code) { | |||
| 2174 | 2174 | ta.clearGutterText(); | |
| 2175 | 2175 | // load appropriate line backgrounds for tab | |
| 2176 | 2176 | // first paint breakpoints | |
| 2177 | - for (LineHighlight hl : breakpointedLines) { | ||
| 2178 | - if (isInCurrentTab(hl.getLineID())) { | ||
| 2179 | - hl.paint(); | ||
| 2177 | + if (breakpointedLines != null) { | ||
| 2178 | + for (LineHighlight hl : breakpointedLines) { | ||
| 2179 | + if (isInCurrentTab(hl.getLineID())) { | ||
| 2180 | + hl.paint(); | ||
| 2181 | + } | ||
| 2180 | 2182 | } | |
| 2181 | 2183 | } | |
| 2182 | 2184 | // now paint current line (if any) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments