This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 179759
Collapse All | Expand All

(-)a/api.debugger/apichanges.xml (+18 lines)
Lines 364-369 Link Here
364
        <issue number="178301"/>
364
        <issue number="178301"/>
365
    </change>
365
    </change>
366
366
367
    <change id="BreakpointsGrouping">
368
        <api name="DebuggerCoreAPI"/>
369
        <summary>Breakpoints group properties.</summary>
370
        <version major="1" minor="23"/>
371
        <date day="28" month="1" year="2010"/>
372
        <author login="mentlicher"/>
373
        <compatibility binary="compatible" source="compatible" addition="yes"/>
374
        <description>
375
             <p>
376
             Add Breakpoint.getGroupProperties() method, that returns an implementation
377
             of GroupProperties class with the relevant grouping information
378
             used by BreakpointsWindow to create hierarchy of breakpoint groups
379
             </p>
380
        </description>
381
        <class package="org.netbeans.api.debugger" name="Breakpoint" />
382
        <issue number="179759"/>
383
    </change>
384
367
</changes>
385
</changes>
368
386
369
  <!-- Now the surrounding HTML text and document structure: -->
387
  <!-- Now the surrounding HTML text and document structure: -->
(-)a/api.debugger/manifest.mf (-1 / +1 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.api.debugger/1
2
OpenIDE-Module: org.netbeans.api.debugger/1
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/api/debugger/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/api/debugger/Bundle.properties
4
OpenIDE-Module-Specification-Version: 1.22
4
OpenIDE-Module-Specification-Version: 1.23
5
OpenIDE-Module-Layer: org/netbeans/api/debugger/layer.xml
5
OpenIDE-Module-Layer: org/netbeans/api/debugger/layer.xml
(-)a/api.debugger/nbproject/project.xml (+9 lines)
Lines 47-52 Link Here
47
            <code-name-base>org.netbeans.api.debugger</code-name-base>
47
            <code-name-base>org.netbeans.api.debugger</code-name-base>
48
            <module-dependencies>
48
            <module-dependencies>
49
                <dependency>
49
                <dependency>
50
                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
51
                    <build-prerequisite/>
52
                    <compile-dependency/>
53
                    <run-dependency>
54
                        <release-version>1</release-version>
55
                        <specification-version>1.28</specification-version>
56
                    </run-dependency>
57
                </dependency>
58
                <dependency>
50
                    <code-name-base>org.openide.filesystems</code-name-base>
59
                    <code-name-base>org.openide.filesystems</code-name-base>
51
                    <build-prerequisite/>
60
                    <build-prerequisite/>
52
                    <compile-dependency/>
61
                    <compile-dependency/>
(-)a/api.debugger/src/org/netbeans/api/debugger/Breakpoint.java (-1 / +82 lines)
Lines 43-48 Link Here
43
43
44
import java.beans.PropertyChangeListener;
44
import java.beans.PropertyChangeListener;
45
import java.beans.PropertyChangeSupport;
45
import java.beans.PropertyChangeSupport;
46
import org.netbeans.api.project.Project;
47
import org.openide.filesystems.FileObject;
46
48
47
/**
49
/**
48
 * Abstract definition of breakpoint.
50
 * Abstract definition of breakpoint.
Lines 58-63 Link Here
58
    public static final String          PROP_DISPOSED = "disposed"; // NOI18N
60
    public static final String          PROP_DISPOSED = "disposed"; // NOI18N
59
    /** Property name for name of group of the breakpoint. */
61
    /** Property name for name of group of the breakpoint. */
60
    public static final String          PROP_GROUP_NAME = "groupName"; // NOI18N
62
    public static final String          PROP_GROUP_NAME = "groupName"; // NOI18N
63
    /** Property name for other group properties of the breakpoint. 
64
     * @since 1.23 */
65
    public static final String          PROP_GROUP_PROPERTIES = "groupProperties"; // NOI18N
61
    /** Property name for breakpoint validity */
66
    /** Property name for breakpoint validity */
62
    public static final String          PROP_VALIDITY = "validity"; // NOI18N
67
    public static final String          PROP_VALIDITY = "validity"; // NOI18N
63
    /** Property name constant. */
68
    /** Property name constant. */
Lines 187-202 Link Here
187
        }
192
        }
188
        firePropertyChange(PROP_HIT_COUNT_FILTER, old, newProp);
193
        firePropertyChange(PROP_HIT_COUNT_FILTER, old, newProp);
189
    }
194
    }
190
    
195
196
    /**
197
     * Get the name of a user-created group for this breakpoint.
198
     */
191
    public String getGroupName () {
199
    public String getGroupName () {
192
        return groupName;
200
        return groupName;
193
    }
201
    }
194
    
202
    
203
    /**
204
     * Set the name of a user-created group for this breakpoint.
205
     */
195
    public void setGroupName (String newGroupName) {
206
    public void setGroupName (String newGroupName) {
196
        if (groupName.equals (newGroupName)) return;
207
        if (groupName.equals (newGroupName)) return;
197
        String old = groupName;
208
        String old = groupName;
198
        groupName = newGroupName.intern();
209
        groupName = newGroupName.intern();
199
        firePropertyChange (PROP_GROUP_NAME, old, newGroupName);
210
        firePropertyChange (PROP_GROUP_NAME, old, newGroupName);
211
    }
212
213
    /**
214
     * Get group properties of the breakpoint.
215
     * These are implementation-defined group properties as oposed to {@link #getGroupName()},
216
     * which returns user-defined group name.
217
     * <p>
218
     * These properties are used by the Breakpoint Window to show a tree
219
     * hierarchy of groups and associated breakpoints.
220
     * Implementation should fire {@link #PROP_GROUP_PROPERTIES} event when
221
     * the group properties change.
222
     * @return {@link GroupProperties} or <code>null</code> when no group properties
223
     * are defined.
224
     * @since 1.23
225
     */
226
    public GroupProperties getGroupProperties() {
227
        return null;
200
    }
228
    }
201
    
229
    
202
    /** 
230
    /** 
Lines 263-266 Link Here
263
        dispose ();
291
        dispose ();
264
        firePropertyChange (PROP_DISPOSED, Boolean.FALSE, Boolean.TRUE);
292
        firePropertyChange (PROP_DISPOSED, Boolean.FALSE, Boolean.TRUE);
265
    }
293
    }
294
    
295
296
    /**
297
     * Group properties of breakpoint.
298
     * These are used by the Breakpoint Window to show a tree hierarchy of
299
     * groups and associated breakpoints.
300
     * @since 1.23
301
     */
302
    public static abstract class GroupProperties {
303
304
        /**
305
         * Get the language of the source file with the breakpoint.
306
         * @return The human-readable language of the breakpoint source file or <code>null</code>
307
         * when this does not apply.
308
         * @see <code>org.netbeans.spi.debugger.ui.BreakpointType.getCategoryDisplayName()</code>
309
         */
310
        public abstract String getLanguage();
311
312
        /**
313
         * Get the breakpoint type.
314
         * @return The human-readable type of the breakpoint or <code>null</code>
315
         * when this does not apply.
316
         * @see <code>org.netbeans.spi.debugger.ui.BreakpointType.getTypeDisplayName()</code>
317
         */
318
        public abstract String getType();
319
320
        /**
321
         * Get the source files containing this breakpoint.
322
         * @return The source files where this breakpoint is submitted or <code>null</code>
323
         * when this does not apply.
324
         */
325
        public abstract FileObject[] getFiles();
326
327
        /**
328
         * Get the projects containing this breakpoint.
329
         * @return The projects in which this breakpoint is submitted or <code>null</code>
330
         * when this does not apply.
331
         */
332
        public abstract Project[] getProjects();
333
334
        /**
335
         * Get the debugger engines that are currently actively using this breakpoint.
336
         * @return The engines in which this breakpoint is active or <code>null</code>
337
         * when this does not apply.
338
         */
339
        public abstract DebuggerEngine[] getEngines();
340
341
        /**
342
         * Test is this breakpoint is hidden (not visible to the user).
343
         * @return <code>true</code> when this breakpoint is hidden, <code>false</code> otherwise.
344
         */
345
        public abstract boolean isHidden();
346
    }
266
}
347
}

Return to bug 179759