Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-01-13 18:00:13 -0500
committermkersten2006-01-13 18:00:13 -0500
commitd33e81b98b283a66f373608c1127d6eef864a201 (patch)
treea34360ceaf99c7a7636248e93e6c9ec54ddf903f
parent6bf33904a7af5bf4b37f7458ee2bda4d42fbae1e (diff)
downloadorg.eclipse.mylyn.tasks-d33e81b98b283a66f373608c1127d6eef864a201.tar.gz
org.eclipse.mylyn.tasks-d33e81b98b283a66f373608c1127d6eef864a201.tar.xz
org.eclipse.mylyn.tasks-d33e81b98b283a66f373608c1127d6eef864a201.zip
Completed: Bug 122845: "Could not save task list" NPE
https://bugs.eclipse.org/bugs/show_bug.cgi?id=122845
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java36
1 files changed, 15 insertions, 21 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java
index c5e8f2e0e..c1d8a7819 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java
@@ -65,10 +65,6 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
private List<ITaskHandler> taskHandlers = new ArrayList<ITaskHandler>(); // TODO:
- // use
- // extension
- // points
-
private List<IContextEditorFactory> contextEditors = new ArrayList<IContextEditorFactory>();
private TaskListWriter taskListWriter;
@@ -81,8 +77,6 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
private long AUTOMATIC_BACKUP_SAVE_INTERVAL = 1 * 3600 * 1000; // every
- // hour
-
private static Date lastBackup = new Date();
private ITaskHighlighter highlighter;
@@ -450,21 +444,6 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
return MylarPlugin.getDefault().getPreferenceStore();
}
- // /**
- // * Sets the directory containing the task list file to use.
- // * Switches immediately to use the data at that location.
- // */
- // public void setDataDirectory(String newDirPath) {
- // String taskListFilePath = newDirPath + File.separator +
- // DEFAULT_TASK_LIST_FILE;
- // getTaskListManager().setTaskListFile(new File(taskListFilePath));
- // getTaskListManager().createNewTaskList();
- // getTaskListManager().readTaskList();
- //
- // if (TaskListView.getDefault() != null)
- // TaskListView.getDefault().clearTaskHistory();
- // }
-
private void checkTaskListBackup() {
// if (getPrefs().contains(PREVIOUS_SAVE_DATE)) {
// lastSave = new Date(getPrefs().getLong(PREVIOUS_SAVE_DATE));
@@ -625,6 +604,21 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
}
}
+// /**
+// * Sets the directory containing the task list file to use.
+// * Switches immediately to use the data at that location.
+// */
+// public void setDataDirectory(String newDirPath) {
+// String taskListFilePath = newDirPath + File.separator +
+// DEFAULT_TASK_LIST_FILE;
+// getTaskListManager().setTaskListFile(new File(taskListFilePath));
+// getTaskListManager().createNewTaskList();
+// getTaskListManager().readTaskList();
+//
+// if (TaskListView.getDefault() != null)
+// TaskListView.getDefault().clearTaskHistory();
+// }
+
// private List<ITaskActivationListener> taskListListeners = new
// ArrayList<ITaskActivationListener>();
//

Back to the top