Skip to content

Commit

Permalink
Removes misleading message when cloning workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Aug 15, 2021
1 parent 89ce978 commit 9b3df8f
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -143,7 +143,7 @@ public static String checkWorkspaceDirectory(final String workspaceLocation, fin
if (!f.exists() && askCreate) {
final boolean create = MessageDialog.openQuestion(Display.getDefault().getActiveShell(), "New Directory",
workspaceLocation + " does not exist. Would you like to create a new workspace here"
+ (cloning ? ", copy the projects and preferences of your current workspace into it, " : "")
+ (cloning ? ", copy the projects of your current workspace into it," : "")
+ " and proceeed ?");
if (create) {
try {
Expand All @@ -162,11 +162,9 @@ public static String checkWorkspaceDirectory(final String workspaceLocation, fin
return null;
}

if (!f.canRead()) // scope.getGui().debug("The selected directory is not readable");
return "The selected directory is not readable";
if (!f.canRead()) return "The selected directory is not readable";

if (!f.isDirectory()) // scope.getGui().debug("The selected path is not a directory");
return "The selected path is not a directory";
if (!f.isDirectory()) return "The selected path is not a directory";

testWorkspaceSanity(f);

Expand All @@ -186,7 +184,6 @@ public static String checkWorkspaceDirectory(final String workspaceLocation, fin
}

if (!wsTest.exists()) return "The selected directory does not exist";

return null;
}
} else if (!wsTest.exists()) return "The selected directory is not a workspace directory";
Expand Down

0 comments on commit 9b3df8f

Please sign in to comment.