public void actionPerformed (ActionEvent e) { DebuggerEngine engine = org.netbeans.api.debugger.DebuggerManager.getDebuggerManager().getCurrentEngine(); if (engine != null) { engine.getActionsManager().doAction(ActionsManager.ACTION_NEW_WATCH); } } };
private void removeBreakpoint () { if (breakpoint != null) { DebuggerManager.getDebuggerManager ().removeBreakpoint (breakpoint); breakpoint = null; } }
private JspBreakpointAnnotationListener getJspBreakpointAnnotationListener () { if (jspBreakpointAnnotationListener == null) jspBreakpointAnnotationListener = (JspBreakpointAnnotationListener) DebuggerManager.getDebuggerManager ().lookupFirst (null, JspBreakpointAnnotationListener.class); return jspBreakpointAnnotationListener; } }
private JPDADebugger getCurrentDebugger() { Session s = DebuggerManager.getDebuggerManager().getCurrentSession(); if (s != null) { JPDADebugger debugger = s.lookupFirst(null, JPDADebugger.class); if (debugger != null) { debugger.addPropertyChangeListener(JPDADebugger.PROP_BREAKPOINTS_ACTIVE, this); } return debugger; } else { return null; } }
public void removeDebuggerListener (DebuggerManagerListener l) { DebuggerManager.getDebuggerManager().removeDebuggerListener( DebuggerManager.PROP_SESSIONS, l); }
public void actionPerformed (ActionEvent evt) { if (!submitFieldOrMethodBreakpoint()) { // Do the toggle BP action directly in this AWT so that it gets the correct current line number. DebuggerManager.getDebuggerManager().getActionsManager().doAction(ActionsManager.ACTION_TOGGLE_BREAKPOINT); } }
public void actionPerformed (ActionEvent e) { DebuggerManager.getDebuggerManager ().removeAllWatches (); } };
/** * Convenience function returns the DebuggerManager we're delegating to. */ private static org.netbeans.api.debugger.DebuggerManager delegate() { return org.netbeans.api.debugger.DebuggerManager.getDebuggerManager(); }
@Override public DebuggerEngine[] getEngines() { DebuggerEngine[] engines = javalb.getGroupProperties().getEngines(); if (engines == null) { return null; } for (int i = 0; i < engines.length; i++) { DebuggerEngine de = engines[i].lookupFirst(null, Session.class).getEngineForLanguage ("JSP"); if (de != null) { engines[i] = de; } } return engines; }
public void breakpointRemoved (Breakpoint breakpoint) { if (breakpoint instanceof JspLineBreakpoint) { Properties p = Properties.getDefault ().getProperties ("debugger"). getProperties (DebuggerManager.PROP_BREAKPOINTS); p.setArray ( JSP_PROPERTY, getBreakpoints () ); breakpoint.removePropertyChangeListener(this); } } public void watchAdded (Watch watch) {
public void breakpointAdded (Breakpoint breakpoint) { if (breakpoint instanceof JspLineBreakpoint) { Properties p = Properties.getDefault ().getProperties ("debugger"). getProperties (DebuggerManager.PROP_BREAKPOINTS); p.setArray ( JSP_PROPERTY, getBreakpoints () ); breakpoint.addPropertyChangeListener(this); } }
/** * Map a debuggercore Session to one of ours */ public static NativeSession map(Session coreSession) { return coreSession.lookupFirst(null, NativeSession.class); }
private synchronized void saveAdditionalSourceRoots () { sourcesProperties.getProperties("additional_source_roots"). setCollection("src_roots", additionalSourceRoots); }
public String getExpression() { if (watch != null) return watch.getExpression(); else return expression; }
public void setExpression(String expression) { if (watch != null) watch.setExpression(expression); else this.expression = expression; }
public void run() { delegate().startDebugging(di); } });
private void removeBreakpoint () { if (breakpoint != null) { DebuggerManager.getDebuggerManager ().removeBreakpoint (breakpoint); breakpoint = null; } }
private void removeBreakpoint() { if (breakpoint != null) { DebuggerManager.getDebuggerManager ().removeBreakpoint (breakpoint); breakpoint = null; } }
@Override public void fileDeleted(FileEvent fe) { DebuggerManager.getDebuggerManager().removeBreakpoint(JspLineBreakpoint.this); fo = null; }
private void removeBreakpoint (LineBreakpoint breakpoint) { if (breakpoint != null) { DebuggerManager.getDebuggerManager ().removeBreakpoint (breakpoint); } }