1 19 20 package org.netbeans.modules.ant.debugger.breakpoints; 21 22 import org.netbeans.api.debugger.Breakpoint; 23 import org.openide.text.Line; 24 25 26 27 31 public class AntBreakpoint extends Breakpoint { 32 33 private boolean enabled = true; 34 private Line line; 35 36 37 AntBreakpoint (Line line) { 38 this.line = line; 39 } 40 41 public Line getLine () { 42 return line; 43 } 44 45 50 public boolean isEnabled () { 51 return enabled; 52 } 53 54 57 public void disable () { 58 if (!enabled) return; 59 enabled = false; 60 firePropertyChange (PROP_ENABLED, Boolean.TRUE, Boolean.FALSE); 61 } 62 63 66 public void enable () { 67 if (enabled) return; 68 enabled = true; 69 firePropertyChange (PROP_ENABLED, Boolean.FALSE, Boolean.TRUE); 70 } 71 } 72 | Popular Tags |