MetaDone
|
Public Member Functions | |
Notification (Level level, boolean synchronous, String message) | |
Notification (Level level, boolean synchronous, String message, Throwable cause) | |
Level | getLevel () |
String | getMessage () |
Throwable | getCause () |
boolean | isSynchronous () |
void | log (Logger logger) |
String | toString () |
Static Public Member Functions | |
static Notification | inform (boolean sync, String message) |
static Notification | warn (boolean sync, String message, Throwable cause) |
static Notification | error (boolean sync, String message, Throwable cause) |
Private Attributes | |
final Level | level |
final String | message |
final Throwable | cause |
boolean | synchronous |
A notification for the user or for logging.
metadone.metabusiness.events.Notification.Notification | ( | Level | level, |
boolean | synchronous, | ||
String | message | ||
) |
Initializes this notification.
level | The level |
synchronous | Whether the notification is shown to the user |
message | The message |
NullPointerException | when level or message is null |
References metadone.metabusiness.events.Notification.level, metadone.metabusiness.events.Notification.message, and metadone.metabusiness.events.Notification.synchronous.
Referenced by metadone.metabusiness.events.Notification.error(), metadone.metabusiness.events.Notification.inform(), and metadone.metabusiness.events.Notification.warn().
metadone.metabusiness.events.Notification.Notification | ( | Level | level, |
boolean | synchronous, | ||
String | message, | ||
Throwable | cause | ||
) |
Initializes this notification.
level | The level |
synchronous | Whether the notification is shown to the user |
message | The message |
cause | The cause of the message or null |
NullPointerException | when level or message is null |
References metadone.metabusiness.events.Notification.cause, metadone.metabusiness.events.Notification.level, metadone.metabusiness.events.Notification.message, and metadone.metabusiness.events.Notification.synchronous.
static Notification metadone.metabusiness.events.Notification.error | ( | boolean | sync, |
String | message, | ||
Throwable | cause | ||
) | [static] |
Creates an error notification.
sync | Whether the message is synchronous |
message | The message |
cause | The cause or null |
References metadone.metabusiness.events.Notification.Notification().
Referenced by metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.client.actions.RetroDocAction.actionPerformed(), metadone.client.actions.OpenProjectAction.actionPerformed(), metadone.client.actions.OpenGrasylaScriptAction.actionPerformed(), metadone.client.actions.ConnectAction.actionPerformed(), metadone.client.actions.ConcreteObjectDeleteAction.actionPerformed(), metadone.client.actions.ConcreteObjectCreateAction.actionPerformed(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.add(), metadone.client.actions.ConnectAction.configureJPA2(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu(), metadone.client.MainClientMetadone.error(), metadone.client.grasyla2.actions.GAction.execute(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot.getChildren(), metadone.client.actions.Test_ECORE_Action.importMetaModel(), metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.MyVisualizeModel(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.remove(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.RoleListModel(), metadone.client.MetadoneDesktopPane.EngineObserver.start(), metadone.client.dialog.swing.helperBrowserMetal1.NodeValue.toString(), metadone.client.MetadoneDesktopPane.EngineObserver.trigger(), and metadone.client.MetadoneDesktopPane.updatePopupMenuItems().
Throwable metadone.metabusiness.events.Notification.getCause | ( | ) |
Level metadone.metabusiness.events.Notification.getLevel | ( | ) |
Gets the level.
References metadone.metabusiness.events.Notification.level.
Referenced by metadone.client.dialog.swing.JLogger.log(), and metadone.client.MainClientMetadone.NotificationSubscriber.trigger().
String metadone.metabusiness.events.Notification.getMessage | ( | ) |
Gets the message.
References metadone.metabusiness.events.Notification.message.
Referenced by metadone.client.dialog.swing.JLogger.log(), and metadone.client.MainClientMetadone.NotificationSubscriber.trigger().
static Notification metadone.metabusiness.events.Notification.inform | ( | boolean | sync, |
String | message | ||
) | [static] |
Creates an information notification.
sync | Whether the message is synchronous |
message | The message |
References metadone.metabusiness.events.Notification.Notification().
Referenced by metadone.client.actions.RetroDocAction.actionPerformed(), metadone.client.actions.OpenProjectAction.actionPerformed(), metadone.client.actions.OpenGrasylaScriptAction.actionPerformed(), metadone.client.actions.ConcreteObjectCreateAction.actionPerformed(), metadone.client.actions.ConnectAction.configureJPA2(), metadone.plugin.helloworld.HelloPlugin.createMenu(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu(), metadone.plugin.helloworld.HelloPlugin.getActionFor(), metadone.client.MainClientMetadone.inform(), and metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.MyVisualizeModel().
boolean metadone.metabusiness.events.Notification.isSynchronous | ( | ) |
Indicates whether the notification should be shown explicitly to the user.
References metadone.metabusiness.events.Notification.synchronous.
Referenced by metadone.client.MainClientMetadone.NotificationSubscriber.trigger().
void metadone.metabusiness.events.Notification.log | ( | Logger | logger | ) |
Logs the message using a logger.
logger | The logger |
References metadone.metabusiness.events.Notification.cause, metadone.metabusiness.events.Notification.level, and metadone.metabusiness.events.Notification.message.
String metadone.metabusiness.events.Notification.toString | ( | ) |
static Notification metadone.metabusiness.events.Notification.warn | ( | boolean | sync, |
String | message, | ||
Throwable | cause | ||
) | [static] |
Creates a warning notification.
sync | Whether the message is synchronous |
message | The message |
cause | The cause or null |
References metadone.metabusiness.events.Notification.Notification().
Referenced by metadone.client.actions.UndoRedoAction.actionPerformed(), metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.client.actions.PluginsAction.actionPerformed(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu(), metadone.client.grasyla2.value.ValueScriptEngine.evaluateComponent(), metadone.client.actions.Test_ECORE_Action.importMetaModel(), metadone.client.actions.VisualizeMetaModelAction.initiatizeScript(), and metadone.client.MainClientMetadone.warning().
final Throwable metadone.metabusiness.events.Notification.cause [private] |
final Level metadone.metabusiness.events.Notification.level [private] |
final String metadone.metabusiness.events.Notification.message [private] |
boolean metadone.metabusiness.events.Notification.synchronous [private] |