Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2004-06-09 16:16:26 +0000
committerDani Megert2004-06-09 16:16:26 +0000
commit068686f965911ff791cd2720a023925a7474ef3f (patch)
treee9a10a3b2aaa73ba8a684dc5f1fd9de881b9e056 /org.eclipse.core.filebuffers.tests/src
parent55351799b7081d196b1f223b067eebd9b7f84476 (diff)
downloadeclipse.platform.text-068686f965911ff791cd2720a023925a7474ef3f.tar.gz
eclipse.platform.text-068686f965911ff791cd2720a023925a7474ef3f.tar.xz
eclipse.platform.text-068686f965911ff791cd2720a023925a7474ef3f.zip
Added method to delete project without deleting content
Diffstat (limited to 'org.eclipse.core.filebuffers.tests/src')
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/TestHelper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/TestHelper.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/TestHelper.java
index b789eed00..8706efd57 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/TestHelper.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/TestHelper.java
@@ -75,9 +75,13 @@ public class TestHelper {
}
public static void delete(final IProject project) throws CoreException {
+ delete(project, true);
+ }
+
+ public static void delete(final IProject project, boolean deleteContent) throws CoreException {
for (int i= 0; i < MAX_RETRY; i++) {
try {
- project.delete(true, true, NULL_MONITOR);
+ project.delete(deleteContent, true, NULL_MONITOR);
i= MAX_RETRY;
} catch (CoreException x) {
if (i == MAX_RETRY - 1) {

Back to the top