diff options
author | Olivier Thomann | 2009-10-05 14:35:51 +0000 |
---|---|---|
committer | Olivier Thomann | 2009-10-05 14:35:51 +0000 |
commit | be60c5fae8401603b06f3ef1fdaad755202820be (patch) | |
tree | 8532973ce40bbb72d2c9653b44458bff141c5694 | |
parent | 02855639d3ba83baf147f03e6554692727e6c5ef (diff) | |
download | eclipse.jdt.core-be60c5fae8401603b06f3ef1fdaad755202820be.tar.gz eclipse.jdt.core-be60c5fae8401603b06f3ef1fdaad755202820be.tar.xz eclipse.jdt.core-be60c5fae8401603b06f3ef1fdaad755202820be.zip |
HEAD - Complement for bug 291322v20091006-0800
-rw-r--r-- | org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java index 573a5495a8..086763995e 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java @@ -39,6 +39,7 @@ import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Plugin; import org.eclipse.jdt.apt.core.internal.AptPlugin; @@ -163,9 +164,9 @@ public class TestUtil * org.eclipse.jdt.core.tests.util.Util work around this by catching * and retrying until success. This is a convenience method to fill a * hole in the Util API. - * @return true if the file was deleted; false if there was an error or timeout + * @return an IStatus that describes if the deletion was successful */ - public static boolean deleteFile(IPath path) { + public static IStatus deleteFile(IPath path) { IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); return Util.delete(file); } |