diff --git a/o.n.core/src/org/netbeans/core/NotifyExcPanel.java b/o.n.core/src/org/netbeans/core/NotifyExcPanel.java --- a/o.n.core/src/org/netbeans/core/NotifyExcPanel.java +++ b/o.n.core/src/org/netbeans/core/NotifyExcPanel.java @@ -282,6 +282,11 @@ /** Adds new exception into the queue. */ + @NbBundle.Messages({ + "TTL_Warning=Warning", + "TTL_Error=Error", + "TTL_Info=Info" + }) static void notify ( final NbErrorManager.Exc t ) { @@ -317,23 +322,23 @@ if (loc) { if (gs == Level.WARNING) { - DialogDisplayer.getDefault().notify( - new NotifyDescriptor.Message(glm, NotifyDescriptor.WARNING_MESSAGE) - ); + NotificationDisplayer.getDefault().notify( + Bundle.TTL_Warning(), null, glm, null, + NotificationDisplayer.Priority.NORMAL); return; } if (gs.intValue() == 1973) { - DialogDisplayer.getDefault().notify( - new NotifyDescriptor.Message(glm, NotifyDescriptor.INFORMATION_MESSAGE) - ); + NotificationDisplayer.getDefault().notify( + Bundle.TTL_Info(), null, glm, null, + NotificationDisplayer.Priority.LOW); return; } if (gs == Level.SEVERE) { - DialogDisplayer.getDefault().notify( - new NotifyDescriptor.Message(glm, NotifyDescriptor.ERROR_MESSAGE) - ); + NotificationDisplayer.getDefault().notify( + Bundle.TTL_Error(), null, glm, null, + NotificationDisplayer.Priority.HIGH); return; } }