diff options
author | pfullbright | 2011-08-25 21:34:13 +0000 |
---|---|---|
committer | pfullbright | 2011-08-25 21:34:13 +0000 |
commit | 0dd8d04a17a438cb5292b69f30ffecb2f05a8368 (patch) | |
tree | b1fd34012ddce8c0cf2e5090f330618825f7e783 | |
parent | bbf1de6e8b570f688ad8e6aaccaad117d7e80c81 (diff) | |
download | webtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.tar.gz webtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.tar.xz webtools.dali-0dd8d04a17a438cb5292b69f30ffecb2f05a8368.zip |
added compilation unit creation method
-rw-r--r-- | common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java b/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java index e8aea35c72..abf84a8173 100644 --- a/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java +++ b/common/tests/org.eclipse.jpt.common.core.tests/src/org/eclipse/jpt/common/core/tests/internal/utility/jdt/AnnotationTestCase.java @@ -219,6 +219,10 @@ public abstract class AnnotationTestCase return this.javaProject.createCompilationUnit(PACKAGE_NAME, FILE_NAME, this.createSourceWriter(annotationWriter)); } + protected ICompilationUnit createTestType(String typeName, AnnotationWriter annotationWriter) throws CoreException { + return this.javaProject.createCompilationUnit(PACKAGE_NAME, typeName + ".java", createSourceWriter(annotationWriter, typeName)); + } + protected ICompilationUnit createTestType(String packageName, String fileName, String typeName, AnnotationWriter annotationWriter) throws CoreException { return this.javaProject.createCompilationUnit(packageName, fileName, this.createSourceWriter(annotationWriter, typeName)); } |