@Override
public void singleNotification(IApplicationNotification notification)
{
// Entrada al popup
final TrayPopupEntry entry = new TrayPopupEntry();
entry.setNotificationId(notification.getId());
entry.setMessage(notification.getMessage());
if(notification instanceof INotificationActionSupport){
Action action = ((INotificationActionSupport)notification).getAction();
entry.setAction(action);
}
ImageIcon icon = new ImageIcon(getClass().getResource(notification.getIconPath()));
entry.setIcon(icon);
final boolean showNotification = ApplicationWindowManager.getInstance().isMainWindowActive();
if(!showNotification){
if(log.isDebugEnabled()){
log.debug("Finestra no visible; Mostrant notificació al tray");