diff -r 55edf326bb27 api.debugger.jpda/apichanges.xml
--- a/api.debugger.jpda/apichanges.xml Tue Feb 26 15:54:39 2013 +0100
+++ b/api.debugger.jpda/apichanges.xml Tue Feb 26 16:34:59 2013 +0100
@@ -816,6 +816,25 @@
+
+
+ Breakpoints can deactivated.
+
+
+
+
+
+ Two methods are added to JPDADebugger class: getBreakpointsActive()
+ and setBreakpointsActive(boolean). The set method fires PROP_BREAKPOINTS_ACTIVE
+ event.
+ These methods are used to activate/deactivate all breakpoints in the
+ debugger session.
+ Initially, the breakpoints are active in the debugger session.
+
+
+
+
+
diff -r 55edf326bb27 api.debugger.jpda/manifest.mf
--- a/api.debugger.jpda/manifest.mf Tue Feb 26 15:54:39 2013 +0100
+++ b/api.debugger.jpda/manifest.mf Tue Feb 26 16:34:59 2013 +0100
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.api.debugger.jpda/2
OpenIDE-Module-Localizing-Bundle: org/netbeans/api/debugger/jpda/Bundle.properties
-OpenIDE-Module-Specification-Version: 2.41
+OpenIDE-Module-Specification-Version: 2.42
OpenIDE-Module-Package-Dependencies: com.sun.jdi[VirtualMachineManager]
diff -r 55edf326bb27 api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDADebugger.java
--- a/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDADebugger.java Tue Feb 26 15:54:39 2013 +0100
+++ b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDADebugger.java Tue Feb 26 16:34:59 2013 +0100
@@ -107,6 +107,9 @@
/** Property name constant.
* @since 2.25 */
public static final String PROP_CLASSES_FIXED = "classesFixed"; // NOI18N
+ /** Property name constant. Fired when breakpoints are activated / deactivated.
+ * @since 2.42 */
+ public static final String PROP_BREAKPOINTS_ACTIVE = "breakpointsActive"; // NOI18N
/** Suspend property value constant. */
public static final int SUSPEND_ALL = EventRequest.SUSPEND_ALL;
@@ -488,6 +491,30 @@
}
/**
+ * Test, if breakpoints are active.
+ * @return true
when breakpoints are active, false
+ * otherwise. The default implementation returns true
, to be overridden
+ * when needed.
+ * @since 2.42
+ */
+ public boolean getBreakpointsActive() {
+ return true;
+ }
+
+ /**
+ * Set all breakpoints to be active / inactive.
+ * Activation or deactivation of breakpoints should not alter the enabled/disabled
+ * state of individual breakpoints.
+ * The default implementation does nothing, override
+ * together with {@link #getBreakpointsActive()} when needed.
+ * @param active true
to make all breakpoints active,
+ * false
to make all breakpoints inactive.
+ * @since 2.42
+ */
+ public void setBreakpointsActive(boolean active) {
+ }
+
+ /**
* Adds property change listener.
*
* @param l new listener.