Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
index 7327e795e..588142182 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/MylarTasksPlugin.java
@@ -121,19 +121,25 @@ public class MylarTasksPlugin extends AbstractUIPlugin implements IStartup {
private static ShellListener SHELL_LISTENER = new ShellListener() {
private void saveState() {
taskListManager.saveTaskList();
- }
- public void shellClosed(ShellEvent arg0) {
- saveState();
for(ITask task : taskListManager.getTaskList().getActiveTasks()) {
MylarPlugin.getTaskscapeManager().saveTaskscape(task.getHandle(), task.getPath());
}
+ }
+
+ public void shellClosed(ShellEvent arg0) {
+ saveState();
}
+
public void shellDeactivated(ShellEvent arg0) {
- saveState();
+ // bug 1002249: too slow to save state here
}
public void shellActivated(ShellEvent arg0) { }
+
public void shellDeiconified(ShellEvent arg0) { }
- public void shellIconified(ShellEvent arg0) { }
+
+ public void shellIconified(ShellEvent arg0) {
+ saveState();
+ }
};
private static IPropertyChangeListener PREFERENCE_LISTENER = new IPropertyChangeListener() {

Back to the top