diff -r d86a5e4e1ac5 api.debugger.jpda/apichanges.xml
--- a/api.debugger.jpda/apichanges.xml Tue Feb 19 12:00:33 2013 +0100
+++ b/api.debugger.jpda/apichanges.xml Wed Feb 20 14:30:06 2013 +0100
@@ -816,6 +816,24 @@
+
+
+ Breakpoints can deactivated.
+
+
+
+
+
+ Two methods are added to JPDADebugger class: areBreakpointsActive()
+ and setBreakpointsActive(boolean). The set method fires PROP_BREAKPOINTS_ACTIVE
+ event.
+ These methods are used to activate/deactivate all breakpoints in the
+ debugger session.
+
+
+
+
+
diff -r d86a5e4e1ac5 api.debugger.jpda/manifest.mf
--- a/api.debugger.jpda/manifest.mf Tue Feb 19 12:00:33 2013 +0100
+++ b/api.debugger.jpda/manifest.mf Wed Feb 20 14:30:06 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 d86a5e4e1ac5 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 19 12:00:33 2013 +0100
+++ b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDADebugger.java Wed Feb 20 14:30:06 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,32 @@
}
/**
+ * 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 areBreakpointsActive() {
+ 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 throws UnsupportedOperationException, override
+ * together with {@link #areBreakpointsActive()} when needed.
+ * @param active true
to make all breakpoints active,
+ * false
to make all breakpoints inactive.
+ * @throws UnsupportedOperationException when not supported.
+ * @since 2.42
+ */
+ public void setBreakpointsActive(boolean active) {
+ throw new UnsupportedOperationException("This method must be overridden.");
+ }
+
+ /**
* Adds property change listener.
*
* @param l new listener.