Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-14 17:20:57 -0500
committermkersten2006-12-14 17:20:57 -0500
commitd74a57c2888a67f7986bfb262d239795443e5bfc (patch)
tree1560179b96f8eda815f1818a4ceb3bfabed8258c
parent00490d0988bea79025b616b332f7c5ae5860ce02 (diff)
downloadorg.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.tar.gz
org.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.tar.xz
org.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.zip
RESOLVED - bug 168067: Problem when importing preferences into a new workspace
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168067
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
index 0af859cf8..4a4b4cc03 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
@@ -198,7 +198,11 @@ public class TaskListNotificationManager implements IPropertyChangeListener {
public void propertyChange(PropertyChangeEvent event) {
if (event.getProperty().equals(TaskListPreferenceConstants.NOTIFICATIONS_ENABLED)) {
- if ((Boolean)event.getNewValue() == true) {
+ Object newValue = event.getNewValue();
+ if (!(newValue instanceof Boolean)) {
+ // default if no preference value
+ startNotification(OPEN_POPUP_DELAY);
+ } else if ((Boolean)newValue == true) {
startNotification(OPEN_POPUP_DELAY);
} else {
stopNotification();

Back to the top