Added cstom message showCustomNotification that is used for security responses.

This commit is contained in:
Achim D. Brucker 2015-05-30 21:21:40 +02:00
parent 6d65366319
commit 6a4ab34cf5
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ public class NotificationManager implements Serializable {
Notification.TYPE_ERROR_MESSAGE);
}
//<SecureBPMN>
public void showCustomNotification(String caption, String description) {
mainWindow.showNotification(caption, "<br/>" + description, Notification.TYPE_ERROR_MESSAGE);
}
//</SecureBPMN>
public void showErrorNotification(String captionKey, Exception exception) {
mainWindow.showNotification(i18nManager.getMessage(captionKey),
"<br/>" + exception.getMessage(),