notification = new EventNotification(eventType);
notificationsTable.put(eventType, notification);
}
notification.addAction(actionType, handler);
// We fire the appropriate event depending on whether this is an
// already existing actionType or a new one.
fireNotificationActionTypeEvent(
isNew ? NotificationActionTypeEvent.ACTION_ADDED