Lines 45-54
Link Here
|
45 |
package org.netbeans.modules.debugger.jpda.ui.breakpoints; |
45 |
package org.netbeans.modules.debugger.jpda.ui.breakpoints; |
46 |
|
46 |
|
47 |
import java.awt.Dimension; |
47 |
import java.awt.Dimension; |
|
|
48 |
import java.util.ArrayList; |
49 |
import java.util.Collections; |
50 |
import java.util.List; |
48 |
|
51 |
|
49 |
import java.util.ResourceBundle; |
52 |
import java.util.ResourceBundle; |
|
|
53 |
import java.util.Set; |
54 |
import java.util.TreeSet; |
50 |
import java.util.prefs.Preferences; |
55 |
import java.util.prefs.Preferences; |
|
|
56 |
import org.netbeans.api.debugger.Breakpoint; |
57 |
import org.netbeans.api.debugger.DebuggerManager; |
51 |
import org.netbeans.api.debugger.jpda.JPDABreakpoint; |
58 |
import org.netbeans.api.debugger.jpda.JPDABreakpoint; |
|
|
59 |
import org.netbeans.api.project.Project; |
60 |
import org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsFromGroup; |
61 |
import org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsFromGroup.TestGroupProperties; |
62 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.FileItem; |
63 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.FilesGroup; |
64 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.ProjectItem; |
65 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.ProjectsGroup; |
66 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.TypeItem; |
67 |
import org.netbeans.modules.debugger.jpda.ui.breakpoints.BreakpointsExpandableGroup.TypesGroup; |
68 |
import org.openide.filesystems.FileObject; |
52 |
import org.openide.util.NbBundle; |
69 |
import org.openide.util.NbBundle; |
53 |
import org.openide.util.NbPreferences; |
70 |
import org.openide.util.NbPreferences; |
54 |
|
71 |
|
Lines 64-69
Link Here
|
64 |
private int defaultSuspendAction; |
81 |
private int defaultSuspendAction; |
65 |
private int checkedSuspendAction; |
82 |
private int checkedSuspendAction; |
66 |
private Preferences preferences = NbPreferences.forModule(JPDABreakpoint.class).node("debugging"); // NOI18N |
83 |
private Preferences preferences = NbPreferences.forModule(JPDABreakpoint.class).node("debugging"); // NOI18N |
|
|
84 |
private static final Object NONE_BREAKPOINT_GROUP = new NoneBreakpointGroup(); |
67 |
|
85 |
|
68 |
/** Creates new form LineBreakpointPanel */ |
86 |
/** Creates new form LineBreakpointPanel */ |
69 |
public ActionsPanel (JPDABreakpoint b) { |
87 |
public ActionsPanel (JPDABreakpoint b) { |
Lines 105-110
Link Here
|
105 |
30*tfPrintText.getFontMetrics(tfPrintText.getFont()).charWidth('W'), |
123 |
30*tfPrintText.getFontMetrics(tfPrintText.getFont()).charWidth('W'), |
106 |
tfPrintText.getPreferredSize().height)); |
124 |
tfPrintText.getPreferredSize().height)); |
107 |
tfPrintText.setCaretPosition(0); |
125 |
tfPrintText.setCaretPosition(0); |
|
|
126 |
|
127 |
enableGroupCheckBox.setVisible(false); |
128 |
disableGroupCheckBox.setVisible(false); |
129 |
Object[] groups = getGroups(); |
130 |
Set<Breakpoint> breakpointsToEnable = breakpoint.getBreakpointsToEnable(); |
131 |
Set<Breakpoint> breakpointsToDisable = breakpoint.getBreakpointsToDisable(); |
132 |
BreakpointsFromGroup bfgToEnable = null; |
133 |
BreakpointsFromGroup bfgToDisable = null; |
134 |
if (breakpointsToEnable instanceof BreakpointsFromGroup) { |
135 |
bfgToEnable = (BreakpointsFromGroup) breakpointsToEnable; |
136 |
} |
137 |
if (breakpointsToDisable instanceof BreakpointsFromGroup) { |
138 |
bfgToDisable = (BreakpointsFromGroup) breakpointsToDisable; |
139 |
} |
140 |
fillGroups((OutlineComboBox) enableGroupComboBox, groups, bfgToEnable); |
141 |
fillGroups((OutlineComboBox) disableGroupComboBox, groups, bfgToDisable); |
108 |
} |
142 |
} |
109 |
|
143 |
|
110 |
/** This method is called from within the constructor to |
144 |
/** This method is called from within the constructor to |
Lines 116-143
Link Here
|
116 |
private void initComponents() { |
150 |
private void initComponents() { |
117 |
java.awt.GridBagConstraints gridBagConstraints; |
151 |
java.awt.GridBagConstraints gridBagConstraints; |
118 |
|
152 |
|
119 |
tfPrintText = new javax.swing.JTextField(); |
|
|
120 |
jLabel1 = new javax.swing.JLabel(); |
153 |
jLabel1 = new javax.swing.JLabel(); |
121 |
cbSuspend = new javax.swing.JComboBox(); |
154 |
cbSuspend = new javax.swing.JComboBox(); |
122 |
jLabel2 = new javax.swing.JLabel(); |
|
|
123 |
checkBoxPanel = new javax.swing.JPanel(); |
155 |
checkBoxPanel = new javax.swing.JPanel(); |
124 |
defaultActionCheckBox = new javax.swing.JCheckBox(); |
156 |
defaultActionCheckBox = new javax.swing.JCheckBox(); |
|
|
157 |
enableGroupCheckBox = new javax.swing.JCheckBox(); |
158 |
enableGroupLabel = new javax.swing.JLabel(); |
159 |
enableGroupComboBox = new OutlineComboBox(); |
160 |
disableGroupCheckBox = new javax.swing.JCheckBox(); |
161 |
disableGroupLabel = new javax.swing.JLabel(); |
162 |
disableGroupComboBox = new OutlineComboBox(); |
163 |
jLabel2 = new javax.swing.JLabel(); |
164 |
tfPrintText = new javax.swing.JTextField(); |
125 |
|
165 |
|
126 |
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/debugger/jpda/ui/breakpoints/Bundle"); // NOI18N |
166 |
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/debugger/jpda/ui/breakpoints/Bundle"); // NOI18N |
127 |
setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("L_Actions_Panel_BorderTitle"))); // NOI18N |
167 |
setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("L_Actions_Panel_BorderTitle"))); // NOI18N |
128 |
setLayout(new java.awt.GridBagLayout()); |
168 |
setLayout(new java.awt.GridBagLayout()); |
129 |
|
169 |
|
130 |
tfPrintText.setToolTipText(bundle.getString("TTT_TF_Actions_Panel_Print_Text")); // NOI18N |
|
|
131 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
132 |
gridBagConstraints.gridx = 1; |
133 |
gridBagConstraints.gridy = 1; |
134 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
135 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
136 |
gridBagConstraints.weightx = 1.0; |
137 |
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); |
138 |
add(tfPrintText, gridBagConstraints); |
139 |
tfPrintText.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TF_Actions_Panel_Print_Text")); // NOI18N |
140 |
|
141 |
jLabel1.setLabelFor(cbSuspend); |
170 |
jLabel1.setLabelFor(cbSuspend); |
142 |
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, bundle.getString("L_Actions_Panel_Suspend")); // NOI18N |
171 |
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, bundle.getString("L_Actions_Panel_Suspend")); // NOI18N |
143 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
172 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
Lines 162-177
Link Here
|
162 |
add(cbSuspend, gridBagConstraints); |
191 |
add(cbSuspend, gridBagConstraints); |
163 |
cbSuspend.getAccessibleContext().setAccessibleDescription(bundle.getString("ASCD_CB_Actions_Panel_Suspend")); // NOI18N |
192 |
cbSuspend.getAccessibleContext().setAccessibleDescription(bundle.getString("ASCD_CB_Actions_Panel_Suspend")); // NOI18N |
164 |
|
193 |
|
165 |
jLabel2.setLabelFor(tfPrintText); |
|
|
166 |
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, bundle.getString("L_Actions_Panel_Print_Text")); // NOI18N |
167 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
168 |
gridBagConstraints.gridx = 0; |
169 |
gridBagConstraints.gridy = 1; |
170 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
171 |
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); |
172 |
add(jLabel2, gridBagConstraints); |
173 |
jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ActionsPanel.class, "ACSD_PrintText")); // NOI18N |
174 |
|
175 |
checkBoxPanel.setLayout(new java.awt.GridBagLayout()); |
194 |
checkBoxPanel.setLayout(new java.awt.GridBagLayout()); |
176 |
|
195 |
|
177 |
org.openide.awt.Mnemonics.setLocalizedText(defaultActionCheckBox, "jCheckBox1"); |
196 |
org.openide.awt.Mnemonics.setLocalizedText(defaultActionCheckBox, "jCheckBox1"); |
Lines 194-199
Link Here
|
194 |
gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); |
213 |
gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); |
195 |
add(checkBoxPanel, gridBagConstraints); |
214 |
add(checkBoxPanel, gridBagConstraints); |
196 |
|
215 |
|
|
|
216 |
org.openide.awt.Mnemonics.setLocalizedText(enableGroupCheckBox, org.openide.util.NbBundle.getMessage(ActionsPanel.class, "MSG_EnableGroup")); // NOI18N |
217 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
218 |
gridBagConstraints.gridy = 1; |
219 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
220 |
add(enableGroupCheckBox, gridBagConstraints); |
221 |
|
222 |
org.openide.awt.Mnemonics.setLocalizedText(enableGroupLabel, org.openide.util.NbBundle.getMessage(ActionsPanel.class, "MSG_EnableGroup")); // NOI18N |
223 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
224 |
gridBagConstraints.gridx = 0; |
225 |
gridBagConstraints.gridy = 1; |
226 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
227 |
gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); |
228 |
add(enableGroupLabel, gridBagConstraints); |
229 |
|
230 |
enableGroupComboBox.setEditable(true); |
231 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
232 |
gridBagConstraints.gridx = 1; |
233 |
gridBagConstraints.gridy = 1; |
234 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
235 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
236 |
gridBagConstraints.weightx = 1.0; |
237 |
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); |
238 |
add(enableGroupComboBox, gridBagConstraints); |
239 |
|
240 |
org.openide.awt.Mnemonics.setLocalizedText(disableGroupCheckBox, org.openide.util.NbBundle.getMessage(ActionsPanel.class, "MSG_DisableGroup")); // NOI18N |
241 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
242 |
gridBagConstraints.gridy = 2; |
243 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
244 |
add(disableGroupCheckBox, gridBagConstraints); |
245 |
|
246 |
org.openide.awt.Mnemonics.setLocalizedText(disableGroupLabel, org.openide.util.NbBundle.getMessage(ActionsPanel.class, "MSG_DisableGroup")); // NOI18N |
247 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
248 |
gridBagConstraints.gridx = 0; |
249 |
gridBagConstraints.gridy = 2; |
250 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
251 |
gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); |
252 |
add(disableGroupLabel, gridBagConstraints); |
253 |
|
254 |
disableGroupComboBox.setEditable(true); |
255 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
256 |
gridBagConstraints.gridx = 1; |
257 |
gridBagConstraints.gridy = 2; |
258 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
259 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
260 |
gridBagConstraints.weightx = 1.0; |
261 |
gridBagConstraints.insets = new java.awt.Insets(0, 3, 3, 3); |
262 |
add(disableGroupComboBox, gridBagConstraints); |
263 |
|
264 |
jLabel2.setLabelFor(tfPrintText); |
265 |
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, bundle.getString("L_Actions_Panel_Print_Text")); // NOI18N |
266 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
267 |
gridBagConstraints.gridx = 0; |
268 |
gridBagConstraints.gridy = 3; |
269 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
270 |
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); |
271 |
add(jLabel2, gridBagConstraints); |
272 |
jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ActionsPanel.class, "ACSD_PrintText")); // NOI18N |
273 |
|
274 |
tfPrintText.setToolTipText(bundle.getString("TTT_TF_Actions_Panel_Print_Text")); // NOI18N |
275 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
276 |
gridBagConstraints.gridx = 1; |
277 |
gridBagConstraints.gridy = 3; |
278 |
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; |
279 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
280 |
gridBagConstraints.weightx = 1.0; |
281 |
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); |
282 |
add(tfPrintText, gridBagConstraints); |
283 |
tfPrintText.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TF_Actions_Panel_Print_Text")); // NOI18N |
284 |
|
197 |
getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ActionsPanel.class, "ACSD_Actions")); // NOI18N |
285 |
getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(ActionsPanel.class, "ACSD_Actions")); // NOI18N |
198 |
}// </editor-fold>//GEN-END:initComponents |
286 |
}// </editor-fold>//GEN-END:initComponents |
199 |
|
287 |
|
Lines 236-241
Link Here
|
236 |
if (checkedSuspendAction != defaultSuspendAction) { |
324 |
if (checkedSuspendAction != defaultSuspendAction) { |
237 |
preferences.putInt(DEFAULT_SUSPEND_ACTION, checkedSuspendAction); |
325 |
preferences.putInt(DEFAULT_SUSPEND_ACTION, checkedSuspendAction); |
238 |
} |
326 |
} |
|
|
327 |
Object breakpointsToEnableGroup = enableGroupComboBox.getSelectedItem(); |
328 |
breakpoint.setBreakpointsToEnable(createBreakpointsSet(breakpointsToEnableGroup)); |
329 |
Object breakpointsToDisableGroup = disableGroupComboBox.getSelectedItem(); |
330 |
breakpoint.setBreakpointsToDisable(createBreakpointsSet(breakpointsToDisableGroup)); |
331 |
/* |
332 |
if (breakpointsToDisableGroup == null || breakpointsToDisableGroup == NONE_BREAKPOINT_GROUP) { |
333 |
breakpoint.setBreakpointsToDisable(Collections.EMPTY_SET); |
334 |
} else { |
335 |
TestGroupProperties tgp = createTestProperties(breakpointsToDisableGroup); |
336 |
if (tgp != null) { |
337 |
breakpoint.setBreakpointsToDisable(new BreakpointsFromGroup(tgp)); |
338 |
} else { |
339 |
String customGroup = (String) breakpointsToDisableGroup; |
340 |
customGroup = customGroup.trim(); |
341 |
if (!customGroup.isEmpty()) { |
342 |
breakpoint.setBreakpointsToDisable(new BreakpointsFromGroup(customGroup)); |
343 |
} else { |
344 |
breakpoint.setBreakpointsToDisable(Collections.EMPTY_SET); |
345 |
} |
346 |
} |
347 |
} |
348 |
*/ |
349 |
} |
350 |
|
351 |
private static Set<Breakpoint> createBreakpointsSet(Object selectedGroup) { |
352 |
if (selectedGroup == null || selectedGroup == NONE_BREAKPOINT_GROUP) { |
353 |
return Collections.EMPTY_SET; |
354 |
} else { |
355 |
TestGroupProperties tgp = createTestProperties(selectedGroup); |
356 |
if (tgp != null) { |
357 |
return new BreakpointsFromGroup(tgp); |
358 |
} else { |
359 |
String customGroup = (String) selectedGroup; |
360 |
customGroup = customGroup.trim(); |
361 |
if (!customGroup.isEmpty()) { |
362 |
return new BreakpointsFromGroup(customGroup); |
363 |
} else { |
364 |
return Collections.EMPTY_SET; |
365 |
} |
366 |
} |
367 |
} |
368 |
} |
369 |
|
370 |
/* |
371 |
private static Object getItem(JComboBox cb, BreakpointsFromGroup bfg) { |
372 |
String groupName = bfg.getGroupName(); |
373 |
if (groupName != null) { |
374 |
return groupName; |
375 |
} |
376 |
TestGroupProperties testProperties = bfg.getTestProperties(); |
377 |
|
378 |
FileObject fo = testProperties.getFileObject(); |
379 |
if (fo != null) { |
380 |
|
381 |
} |
382 |
} |
383 |
*/ |
384 |
|
385 |
private static TestGroupProperties createTestProperties(Object group) { |
386 |
if (group instanceof FileItem) { |
387 |
return new TestGroupProperties(((FileItem) group).getFileObject()); |
388 |
} |
389 |
if (group instanceof ProjectItem) { |
390 |
return new TestGroupProperties(((ProjectItem) group).getProject()); |
391 |
} |
392 |
if (group instanceof TypeItem) { |
393 |
return new TestGroupProperties(((TypeItem) group).getType()); |
394 |
} |
395 |
return null; |
396 |
} |
397 |
|
398 |
private void fillGroupNames(OutlineComboBox cb, Object[] groupNames) { |
399 |
//DefaultComboBoxModel cbm = new DefaultComboBoxModel(groupNames); |
400 |
cb.setItems(groupNames); |
401 |
cb.setSelectedIndex(0); |
402 |
} |
403 |
|
404 |
private Object[] fillGroups(OutlineComboBox cb, Object[] groups, BreakpointsFromGroup groupToSelect) { |
405 |
int index = groups.length - 3; |
406 |
FilesGroup fg = new FilesGroup(); |
407 |
ProjectsGroup pg = new ProjectsGroup(); |
408 |
TypesGroup tg = new TypesGroup(); |
409 |
groups[index++] = fg; |
410 |
groups[index++] = pg; |
411 |
groups[index++] = tg; |
412 |
cb.setItems(groups); |
413 |
if (groupToSelect == null) { |
414 |
cb.setSelectedIndex(0); |
415 |
} else { |
416 |
String groupName = groupToSelect.getGroupName(); |
417 |
if (groupName != null) { |
418 |
cb.setSelectedItem(groupName); |
419 |
} else { |
420 |
TestGroupProperties tgp = groupToSelect.getTestGroupProperties(); |
421 |
FileObject fo = tgp.getFileObject(); |
422 |
if (fo != null) { |
423 |
FileItem[] items = fg.getItems(); |
424 |
for (FileItem fi : items) { |
425 |
if (fo.equals(fi.getFileObject())) { |
426 |
cb.getModel().setSelectedItem(fg); // To expand it and fill the items |
427 |
cb.setSelectedItem(fi); |
428 |
break; |
429 |
} |
430 |
} |
431 |
} |
432 |
Project project = tgp.getProject(); |
433 |
if (project != null) { |
434 |
ProjectItem[] items = pg.getItems(); |
435 |
for (ProjectItem pi : items) { |
436 |
if (project.equals(pi.getProject())) { |
437 |
cb.getModel().setSelectedItem(pg); // To expand it and fill the items |
438 |
cb.setSelectedItem(pi); |
439 |
break; |
440 |
} |
441 |
} |
442 |
} |
443 |
String type = tgp.getType(); |
444 |
if (type != null) { |
445 |
TypeItem[] items = tg.getItems(); |
446 |
for (TypeItem ti : items) { |
447 |
if (type.equals(ti.getType())) { |
448 |
cb.getModel().setSelectedItem(tg); // To expand it and fill the items |
449 |
cb.setSelectedItem(ti); |
450 |
break; |
451 |
} |
452 |
} |
453 |
} |
454 |
} |
455 |
} |
456 |
return groups; |
457 |
} |
458 |
|
459 |
private static String[] getGroupNames() { |
460 |
Set<String> groupNamesSorted = new TreeSet<String>(); |
461 |
Breakpoint[] bs = DebuggerManager.getDebuggerManager ().getBreakpoints (); |
462 |
for (int i = 0; i < bs.length; i++) { |
463 |
String gn = bs[i].getGroupName(); |
464 |
groupNamesSorted.add(gn); |
465 |
} |
466 |
groupNamesSorted.remove(""); // Remove the defalt group |
467 |
List<String> groupNames = new ArrayList<String>(groupNamesSorted); |
468 |
groupNames.add(0, NbBundle.getMessage(ActionsPanel.class, "LBL_NoneBreakpointGroup")); |
469 |
return groupNames.toArray(new String[0]); |
470 |
} |
471 |
|
472 |
private static Object[] getGroups() { |
473 |
Set<String> groupNamesSorted = new TreeSet<String>(); |
474 |
Breakpoint[] bs = DebuggerManager.getDebuggerManager ().getBreakpoints (); |
475 |
for (int i = 0; i < bs.length; i++) { |
476 |
String gn = bs[i].getGroupName(); |
477 |
groupNamesSorted.add(gn); |
478 |
} |
479 |
groupNamesSorted.remove(""); // Remove the defalt group |
480 |
Object[] groups = new Object[1 + groupNamesSorted.size() + 3]; // 3 expandable groups |
481 |
groups[0] = NONE_BREAKPOINT_GROUP; |
482 |
int i = 1; |
483 |
for (String gn : groupNamesSorted) { |
484 |
groups[i++] = gn; |
485 |
} |
486 |
return groups; |
487 |
} |
488 |
|
489 |
private static final class NoneBreakpointGroup { |
490 |
|
491 |
@Override |
492 |
public String toString() { |
493 |
return NbBundle.getMessage(ActionsPanel.class, "LBL_NoneBreakpointGroup"); |
494 |
} |
495 |
|
496 |
public static Object valueOf(String newString) { |
497 |
if (newString.isEmpty() || NbBundle.getMessage(ActionsPanel.class, "LBL_NoneBreakpointGroup").equals(newString)) { |
498 |
return NONE_BREAKPOINT_GROUP; |
499 |
} else { |
500 |
return newString; |
501 |
} |
502 |
} |
503 |
|
239 |
} |
504 |
} |
240 |
|
505 |
|
241 |
|
506 |
|
Lines 243-248
Link Here
|
243 |
private javax.swing.JComboBox cbSuspend; |
508 |
private javax.swing.JComboBox cbSuspend; |
244 |
private javax.swing.JPanel checkBoxPanel; |
509 |
private javax.swing.JPanel checkBoxPanel; |
245 |
private javax.swing.JCheckBox defaultActionCheckBox; |
510 |
private javax.swing.JCheckBox defaultActionCheckBox; |
|
|
511 |
private javax.swing.JCheckBox disableGroupCheckBox; |
512 |
private javax.swing.JComboBox disableGroupComboBox; |
513 |
private javax.swing.JLabel disableGroupLabel; |
514 |
private javax.swing.JCheckBox enableGroupCheckBox; |
515 |
private javax.swing.JComboBox enableGroupComboBox; |
516 |
private javax.swing.JLabel enableGroupLabel; |
246 |
private javax.swing.JLabel jLabel1; |
517 |
private javax.swing.JLabel jLabel1; |
247 |
private javax.swing.JLabel jLabel2; |
518 |
private javax.swing.JLabel jLabel2; |
248 |
private javax.swing.JTextField tfPrintText; |
519 |
private javax.swing.JTextField tfPrintText; |