Lines 13-24
Link Here
|
13 |
|
13 |
|
14 |
package org.netbeans.modules.debugger.support.actions; |
14 |
package org.netbeans.modules.debugger.support.actions; |
15 |
|
15 |
|
|
|
16 |
import org.openide.NotifyDescriptor; |
17 |
import org.openide.DialogDisplayer; |
16 |
import org.openide.util.HelpCtx; |
18 |
import org.openide.util.HelpCtx; |
17 |
import org.openide.util.NbBundle; |
19 |
import org.openide.util.NbBundle; |
18 |
import org.openide.util.actions.CookieAction; |
20 |
import org.openide.util.actions.CookieAction; |
19 |
import org.openide.nodes.Node; |
21 |
import org.openide.nodes.Node; |
20 |
|
22 |
|
21 |
|
|
|
22 |
/** |
23 |
/** |
23 |
* Deletes all items in the current item. |
24 |
* Deletes all items in the current item. |
24 |
* This class is final only for performance reasons, can be |
25 |
* This class is final only for performance reasons, can be |
Lines 34-41
Link Here
|
34 |
* @param activatedNodes Currently activated nodes. |
35 |
* @param activatedNodes Currently activated nodes. |
35 |
*/ |
36 |
*/ |
36 |
public void performAction (final Node[] activatedNodes) { |
37 |
public void performAction (final Node[] activatedNodes) { |
37 |
DeleteAllCookie dac = (DeleteAllCookie) activatedNodes [0].getCookie (DeleteAllCookie.class); |
38 |
String message = NbBundle.getMessage(DeleteAllAction.class, "MSG_ConfirmDeleteAllBreakpoints"); |
38 |
dac.deleteAll (); |
39 |
String title = NbBundle.getMessage(DeleteAllAction.class, "MSG_ConfirmDeleteAllBreakpointsTitle"); |
|
|
40 |
NotifyDescriptor desc = new NotifyDescriptor.Confirmation(message, title, NotifyDescriptor.YES_NO_OPTION); |
41 |
if(NotifyDescriptor.YES_OPTION.equals(DialogDisplayer.getDefault().notify(desc))){ |
42 |
DeleteAllCookie dac = (DeleteAllCookie) activatedNodes [0].getCookie (DeleteAllCookie.class); |
43 |
dac.deleteAll (); |
44 |
} |
39 |
} |
45 |
} |
40 |
|
46 |
|
41 |
/** |
47 |
/** |