Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskList06DataMigrationTest.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskList06DataMigrationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskList06DataMigrationTest.java
index c40aea4ef..e69448f2a 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskList06DataMigrationTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskList06DataMigrationTest.java
@@ -20,10 +20,10 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
-import org.eclipse.mylyn.internal.monitor.core.util.StatusManager;
import org.eclipse.mylyn.internal.monitor.core.util.ZipFileUtil;
import org.eclipse.mylyn.internal.tasks.ui.ITasksUiConstants;
import org.eclipse.mylyn.internal.tasks.ui.WorkspaceAwareContextStore;
+import org.eclipse.mylyn.monitor.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.TaskRepositoryManager;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
@@ -168,7 +168,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
return false;
if (newTasklistFile.exists()) {
if (!newTasklistFile.delete()) {
- StatusManager.fail(null, "Could not overwrite tasklist", false);
+ StatusHandler.fail(null, "Could not overwrite tasklist", false);
return false;
}
}
@@ -178,12 +178,12 @@ class TaskListDataMigration implements IRunnableWithProgress {
monitor.beginTask("Migrate Tasklist Data", 1);
ZipFileUtil.createZipFile(newTasklistFile, filesToZip, new SubProgressMonitor(monitor, 1));
if (!oldTasklistFile.delete()) {
- StatusManager.fail(null, "Could not remove old tasklist.", false);
+ StatusHandler.fail(null, "Could not remove old tasklist.", false);
return false;
}
monitor.worked(1);
} catch (Exception e) {
- StatusManager.fail(e, "Error occurred while migrating old tasklist: " + e.getMessage(), true);
+ StatusHandler.fail(e, "Error occurred while migrating old tasklist: " + e.getMessage(), true);
return false;
} finally {
monitor.done();
@@ -198,7 +198,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
return false;
if (newRepositoriesFile.exists()) {
if (!newRepositoriesFile.delete()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not overwrite repositories file. Check read/write permission on data directory.", false);
return false;
}
@@ -209,7 +209,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
monitor.beginTask("Migrate Repository Data", 1);
ZipFileUtil.createZipFile(newRepositoriesFile, filesToZip, new SubProgressMonitor(monitor, 1));
if (!oldRepositoriesFile.delete()) {
- StatusManager
+ StatusHandler
.fail(
null,
"Could not remove old repositories file. Check read/write permission on data directory.",
@@ -218,7 +218,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
}
monitor.worked(1);
} catch (Exception e) {
- StatusManager.fail(e, "Error occurred while migrating old repositories data: " + e.getMessage(), true);
+ StatusHandler.fail(e, "Error occurred while migrating old repositories data: " + e.getMessage(), true);
return false;
} finally {
monitor.done();
@@ -242,7 +242,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
File contextsFolder = new File(dataDirectory, WorkspaceAwareContextStore.CONTEXTS_DIRECTORY);
if (!contextsFolder.exists()) {
if (!contextsFolder.mkdir()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not create contexts folder. Check read/write permission on data directory.", false);
return false;
}
@@ -253,7 +253,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
File newContextFile = new File(contextsFolder, file.getName()+".zip");
if (newContextFile.exists()) {
if (!newContextFile.delete()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not overwrite context file. Check read/write permission on data directory.",
false);
return false;
@@ -261,14 +261,14 @@ class TaskListDataMigration implements IRunnableWithProgress {
}
ZipFileUtil.createZipFile(newContextFile, filesToZip, new SubProgressMonitor(monitor, 1));
if (!file.delete()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not remove old context file. Check read/write permission on data directory.", false);
return false;
}
monitor.worked(1);
}
} catch (Exception e) {
- StatusManager.fail(e, "Error occurred while migrating old repositories data: " + e.getMessage(), true);
+ StatusHandler.fail(e, "Error occurred while migrating old repositories data: " + e.getMessage(), true);
return false;
} finally {
monitor.done();
@@ -284,7 +284,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
File contextsFolder = new File(dataDirectory, WorkspaceAwareContextStore.CONTEXTS_DIRECTORY);
if (!contextsFolder.exists()) {
if (!contextsFolder.mkdir()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not create contexts folder. Check read/write permission on data directory.", false);
return false;
}
@@ -294,7 +294,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
if (newActivityFile.exists()) {
if (!newActivityFile.delete()) {
- StatusManager.fail(null,
+ StatusHandler.fail(null,
"Could not overwrite activity file. Check read/write permission on data directory.", false);
return false;
}
@@ -305,7 +305,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
monitor.beginTask("Migrate Activity Data", 1);
ZipFileUtil.createZipFile(newActivityFile, filesToZip, new SubProgressMonitor(monitor, 1));
if (!oldActivityFile.delete()) {
- StatusManager
+ StatusHandler
.fail(
null,
"Could not remove old activity file. Check read/write permission on data directory.",
@@ -314,7 +314,7 @@ class TaskListDataMigration implements IRunnableWithProgress {
}
monitor.worked(1);
} catch (Exception e) {
- StatusManager.fail(e, "Error occurred while migrating old activity data: " + e.getMessage(), true);
+ StatusHandler.fail(e, "Error occurred while migrating old activity data: " + e.getMessage(), true);
return false;
} finally {
monitor.done();

Back to the top