Index: apichanges.xml
===================================================================
RCS file: /shared/data/ccvs/repository/debuggercore/api/apichanges.xml,v
retrieving revision 1.9
diff -u -r1.9 apichanges.xml
--- apichanges.xml 12 Apr 2007 15:44:57 -0000 1.9
+++ apichanges.xml 15 May 2007 17:13:59 -0000
@@ -14,7 +14,7 @@
"Portions Copyrighted [year] [name of copyright owner]"
The Original Software is NetBeans. The Initial Developer of the Original
-Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
+Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
Microsystems, Inc. All Rights Reserved.
-->
@@ -192,6 +192,30 @@
Breakpoint.getValidityMessage()
,
Breakpoint.setValidity()
- validity management.
+ To be able to set breakpoint for number of iterations, we need to add a filter for hit counts into Breakpoint API. +
+
+ Added methods:
+ Breakpoint.getHitCountFilter()
,
+ Breakpoint.getHitCountFilteringStyle()
,
+ Breakpoint.setHitCountFilter()
.
+
+ Added fields:
+ Breakpoint.PROP_HIT_COUNT_FILTER
,
+ Breakpoint.HIT_COUNT_FILTERING_STYLE
.
+
zero
when no hit count filter is set.
+ */
+ public final synchronized int getHitCountFilter() {
+ return hitCountFilter;
+ }
+
+ /**
+ * Get the style of hit count filtering.
+ * @return the style of hit count filtering, or zero
to unset the filter.
+ * @param hitCountFilteringStyle the style of hit count filtering.
+ * Can be null
only when hitCountFilter == 0
.
+ */
+ public final void setHitCountFilter(int hitCountFilter, HIT_COUNT_FILTERING_STYLE hitCountFilteringStyle) {
+ Object[] old;
+ Object[] newProp;
+ synchronized (this) {
+ if (hitCountFilter == this.hitCountFilter && hitCountFilteringStyle == this.hitCountFilteringStyle) {
+ return ;
+ }
+ if (hitCountFilteringStyle == null && hitCountFilter > 0) {
+ throw new NullPointerException("hitCountFilteringStyle must not be null.");
+ }
+ if (hitCountFilter == 0) {
+ hitCountFilteringStyle = null;
+ }
+ if (this.hitCountFilter == 0) {
+ old = null;
+ } else {
+ old = new Object[] { this.hitCountFilter, this.hitCountFilteringStyle };
+ }
+ if (hitCountFilter == 0) {
+ newProp = null;
+ } else {
+ newProp = new Object[] { hitCountFilter, hitCountFilteringStyle };
+ }
+ this.hitCountFilter = hitCountFilter;
+ this.hitCountFilteringStyle = hitCountFilteringStyle;
+ }
+ firePropertyChange(PROP_HIT_COUNT_FILTER, old, newProp);
}
public String getGroupName () {