Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java
index ed927793a..73d1d0da9 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java
@@ -115,7 +115,6 @@ public class TaskDataImportWizard extends Wizard implements IImportWizard {
if (!sourceZipFile.exists()) {
MessageDialog
.openError(getShell(), "File not found", sourceZipFile.toString() + " could not be found.");
- return false;
}
Enumeration entries;
@@ -171,8 +170,10 @@ public class TaskDataImportWizard extends Wizard implements IImportWizard {
// Get file paths to check for existence
String sourceDir = importPage.getSourceDirectory();
sourceDirFile = new File(sourceDir);
- if (!sourceDirFile.exists() || !sourceDirFile.isDirectory()) {
- MessageDialog.openError(getShell(), "Location not found", sourceZipFile.toString() + " could not be found or is not a folder.");
+ if (!sourceDirFile.exists() || !sourceDirFile.isDirectory()) {
+ // This should never happen
+ MylarStatusHandler.fail(new Exception("File Import Exception"),
+ "Could not import data because specified location does not exist or is not a folder", true);
return false;
}

Back to the top