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 240477
Collapse All | Expand All

(-)a/o.n.core/src/org/netbeans/core/NotifyExcPanel.java (-9 / +14 lines)
Lines 282-287 Link Here
282
282
283
    /** Adds new exception into the queue.
283
    /** Adds new exception into the queue.
284
     */
284
     */
285
    @NbBundle.Messages({
286
        "TTL_Warning=Warning",
287
        "TTL_Error=Error",
288
        "TTL_Info=Info"
289
    })
285
    static void notify (
290
    static void notify (
286
        final NbErrorManager.Exc t
291
        final NbErrorManager.Exc t
287
    ) {
292
    ) {
Lines 317-339 Link Here
317
322
318
                if (loc) {
323
                if (loc) {
319
                    if (gs == Level.WARNING) {
324
                    if (gs == Level.WARNING) {
320
                        DialogDisplayer.getDefault().notify(
325
                        NotificationDisplayer.getDefault().notify(
321
                            new NotifyDescriptor.Message(glm, NotifyDescriptor.WARNING_MESSAGE)
326
                                Bundle.TTL_Warning(), null, glm, null,
322
                        );
327
                                NotificationDisplayer.Priority.NORMAL);
323
                        return;
328
                        return;
324
                    }
329
                    }
325
330
326
                    if (gs.intValue() == 1973) {
331
                    if (gs.intValue() == 1973) {
327
                        DialogDisplayer.getDefault().notify(
332
                        NotificationDisplayer.getDefault().notify(
328
                            new NotifyDescriptor.Message(glm, NotifyDescriptor.INFORMATION_MESSAGE)
333
                                Bundle.TTL_Info(), null, glm, null,
329
                        );
334
                                NotificationDisplayer.Priority.LOW);
330
                        return;
335
                        return;
331
                    }
336
                    }
332
337
333
                    if (gs == Level.SEVERE) {
338
                    if (gs == Level.SEVERE) {
334
                        DialogDisplayer.getDefault().notify(
339
                        NotificationDisplayer.getDefault().notify(
335
                            new NotifyDescriptor.Message(glm, NotifyDescriptor.ERROR_MESSAGE)
340
                                Bundle.TTL_Error(), null, glm, null,
336
                        );
341
                                NotificationDisplayer.Priority.HIGH);
337
                        return;
342
                        return;
338
                    }
343
                    }
339
                }
344
                }

Return to bug 240477