breakpoint markers hidden when Debugger not active

This commit is contained in:
Manindra Moharana
2013-09-01 21:21:05 +05:30
parent 6eb903f665
commit 4dceb7dda7
4 changed files with 28 additions and 22 deletions

View File

@@ -396,6 +396,9 @@ public class TextArea extends JEditTextArea {
* @return gutter width in pixels
*/
protected int getGutterWidth() {
if(editor.debugToolbarEnabled == null || !editor.debugToolbarEnabled.get()){
return 0;
}
FontMetrics fm = painter.getFontMetrics();
// log("fm: " + (fm == null));
// log("editor: " + (editor == null));
@@ -413,6 +416,9 @@ public class TextArea extends JEditTextArea {
* @return margins in pixels
*/
protected int getGutterMargins() {
if(editor.debugToolbarEnabled == null || !editor.debugToolbarEnabled.get()){
return 0;
}
return gutterPadding;
}