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 |
} |