use of org.netbeans.api.debugger.Breakpoint in project enclojure by EricThorsen.
the class PersistenceManager method initBreakpoints.
public Breakpoint[] initBreakpoints() {
try {
Properties p = Properties.getDefault().getProperties("debugger").getProperties(DebuggerManager.PROP_BREAKPOINTS);
Breakpoint[] breakpoints = (Breakpoint[]) p.getArray(CLOJURE_PROPERTY, new Breakpoint[0]);
for (int i = 0; i < breakpoints.length; i++) {
breakpoints[i].addPropertyChangeListener(this);
}
return breakpoints;
} catch (Exception exc) {
LOG.log(Level.SEVERE, exc.getMessage());
exc.printStackTrace();
}
return new Breakpoint[] {};
}
use of org.netbeans.api.debugger.Breakpoint in project enclojure by EricThorsen.
the class PersistenceManager method getBreakpoints.
private static Breakpoint[] getBreakpoints() {
Breakpoint[] bs = DebuggerManager.getDebuggerManager().getBreakpoints();
int i, k = bs.length;
ArrayList bb = new ArrayList();
for (i = 0; i < k; i++) // We store only the JSP breakpoints
if (bs[i] instanceof ClojureLineBreakpoint)
bb.add(bs[i]);
bs = new Breakpoint[bb.size()];
return (Breakpoint[]) bb.toArray(bs);
}
Aggregations