org.eclipse.mylar.internal.tasks.ui
Class TaskListNotificationManager

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.ui.TaskListNotificationManager
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class TaskListNotificationManager
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener

Author:
Rob Elves

Field Summary
private static java.lang.String CLOSE_NOTIFICATION_JOB
           
private static long CLOSE_POPUP_DELAY
           
private  org.eclipse.core.runtime.jobs.Job closeJob
           
private  java.util.Set<ITaskListNotification> currentlyNotifying
           
private  java.util.List<ITaskListNotificationProvider> notificationProviders
           
private  java.util.Set<ITaskListNotification> notifications
           
private static java.lang.String OPEN_NOTIFICATION_JOB
           
private static long OPEN_POPUP_DELAY
           
private  org.eclipse.core.runtime.jobs.Job openJob
           
private  TaskListNotificationPopup popup
           
private static boolean runSystem
           
private  org.eclipse.swt.events.ShellListener SHELL_LISTENER
           
 
Constructor Summary
TaskListNotificationManager()
           
 
Method Summary
 void addNotificationProvider(ITaskListNotificationProvider notification_provider)
           
private  void cleanNotified()
           
 void collectNotifications()
          public for testing
 java.util.Set<ITaskListNotification> getNotifications()
          public for testing purposes
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
 void removeNotificationProvider(ITaskListNotificationProvider notification_provider)
           
 void startNotification(long initialStartupTime)
           
 void stopNotification()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE_NOTIFICATION_JOB

private static final java.lang.String CLOSE_NOTIFICATION_JOB
See Also:
Constant Field Values

OPEN_NOTIFICATION_JOB

private static final java.lang.String OPEN_NOTIFICATION_JOB
See Also:
Constant Field Values

CLOSE_POPUP_DELAY

private static final long CLOSE_POPUP_DELAY
See Also:
Constant Field Values

OPEN_POPUP_DELAY

private static final long OPEN_POPUP_DELAY
See Also:
Constant Field Values

runSystem

private static final boolean runSystem
See Also:
Constant Field Values

popup

private TaskListNotificationPopup popup

notifications

private java.util.Set<ITaskListNotification> notifications

currentlyNotifying

private java.util.Set<ITaskListNotification> currentlyNotifying

notificationProviders

private java.util.List<ITaskListNotificationProvider> notificationProviders

openJob

private org.eclipse.core.runtime.jobs.Job openJob

closeJob

private org.eclipse.core.runtime.jobs.Job closeJob

SHELL_LISTENER

private org.eclipse.swt.events.ShellListener SHELL_LISTENER
Constructor Detail

TaskListNotificationManager

public TaskListNotificationManager()
Method Detail

cleanNotified

private void cleanNotified()

collectNotifications

public void collectNotifications()
public for testing


startNotification

public void startNotification(long initialStartupTime)

stopNotification

public void stopNotification()

addNotificationProvider

public void addNotificationProvider(ITaskListNotificationProvider notification_provider)

removeNotificationProvider

public void removeNotificationProvider(ITaskListNotificationProvider notification_provider)

getNotifications

public java.util.Set<ITaskListNotification> getNotifications()
public for testing purposes


propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener