Commit f8caf50f authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Merge branch '4042' into 'master'

Don't fail if the AF3-Project-Directory was deleted

See merge request af3/af3!351
parents 00377b93 163ea2b0
......@@ -3,7 +3,7 @@ FileUtils.java 70e81c85ae7c2d8076e190ebad7eae648451b645 GREEN
FunctionScopeUtils.java 054c92406affa0c0ad8ac7a067de9608d0bbca2b GREEN
LibraryModelElementFactory.java a5a30a0e6b274d220c397d9bf0f14756d49bd19f GREEN
ProjectModelElementFactory.java 2963d3a1fe651025bae3ae4dc0b6e0b77bbaadd5 GREEN
ProjectUtils.java d8dc2b3d19ce46961b83f20e7669007381865d8c GREEN
ProjectUtils.java 3452992b488694431110a2e6f6183661accd6695 GREEN
TestCaseProjectUtils.java 83dc50f1fc28c7f1d9dcde9e4e0d02480656b7aa GREEN
TypeScopeUtils.java 54f2397f0d6720c90948ccc295f1a63b7319daac GREEN
VariableScopeUtils.java 031591687c2461a990d0534cf4ed4d6df39b1551 GREEN
......@@ -220,6 +220,10 @@ public final class ProjectUtils {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject(AF3_PROJECT_DIRECTORY_NAME);
try {
// If only the AF3-Project-Directory was deleted.
if(project.exists()) {
project.delete(false, new NullProgressMonitor());
}
project.create(null);
project.open(null);
refreshWorkspace();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment