Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-06-30 23:14:04 +0000
committermkersten2005-06-30 23:14:04 +0000
commitfae4c621558630827c5e3cf2aabcd5093e3d806e (patch)
treee8db285178a79485522dddd4dc8c2f6a6a671683
parentcea50a53b54a1b65d905c43c90f2d644eef6714e (diff)
downloadorg.eclipse.mylyn.tasks-fae4c621558630827c5e3cf2aabcd5093e3d806e.tar.gz
org.eclipse.mylyn.tasks-fae4c621558630827c5e3cf2aabcd5093e3d806e.tar.xz
org.eclipse.mylyn.tasks-fae4c621558630827c5e3cf2aabcd5093e3d806e.zip
fix for slow shell deactivation
-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