| de.loskutov.bco.ui.TestJdtUtils
All known Subclasses: de.loskutov.bco.ui.TestJdk15Compatibility, de.loskutov.bco.ui.TestJdk14Compatibility,
TestJdtUtils | abstract public class TestJdtUtils extends TestCase (Code) | | |
Method Summary | |
protected void | addJavaNature(String projectName) | protected void | collectAllTypes(IParent parent, List types) | protected void | copy(File src, File dest) Copy file from src (path to the original file) to dest (path to the destination
file). | protected void | copyDirectory(File source, File target) Copy the given source directory (and all its contents) to the given target
directory. | protected IJavaProject | createJavaProject(String projectName, String[] sourceFolders, String[] libraries, String projectOutput, String compliance) | protected IProject | createProject(String projectName) | protected void | deleteProject(IProject project1) | protected void | doTest(String topClassName) | protected IType[] | getAllTypes(ICompilationUnit cu) | protected ICompilationUnit | getCompilationUnit(String cuName) | protected ICompilationUnit | getCompilationUnit(String rootPath, String packageName, String cuName) Returns the specified compilation unit in the given project, root, and package
fragment or null if it does not exist. | protected IPath | getExternalJCLPath() Returns the IPath to the external java class library (e.g. | protected IPath | getExternalJCLPath(String compliance) Returns the IPath to the external java class library (e.g. | protected String | getExternalJCLPathString(String compliance) Returns the java.io path to the external java class library (e.g. | protected String | getExternalPath() | abstract protected String | getFieldName() | protected IJavaProject | getJavaProject() | protected String | getJavaProjectName() | abstract protected String | getJdkVersion() | protected IPackageFragment | getPackageFragment(String rootPath, String packageName) Returns the specified package fragment in the given project and root, or
null if it does not exist. | protected IPackageFragmentRoot | getPackageFragmentRoot(String rootPath) Returns the specified package fragment root in the given project, or
null if it does not exist. | protected String | getPluginDirectoryPath() Returns the OS path to the directory that contains this plugin. | protected String | getSourcesPath() | protected void | pauseTests() | protected byte[] | read(java.io.File file) | protected void | setUp() | protected void | setUpJCLClasspathVariables(String compliance) | protected IJavaProject | setUpJavaProject(String projectName, String compliance) | protected void | setUpProjectCompliance(IJavaProject javaProject, String compliance) | protected void | setupExternalJCL(String jclName) Check locally for the required JCL files, .jar and src.zip. | protected void | tearDown() |
addJavaNature | protected void addJavaNature(String projectName) throws CoreException(Code) | | |
collectAllTypes | protected void collectAllTypes(IParent parent, List types) throws JavaModelException(Code) | | |
copy | protected void copy(File src, File dest) throws IOException(Code) | | Copy file from src (path to the original file) to dest (path to the destination
file).
|
copyDirectory | protected void copyDirectory(File source, File target) throws IOException(Code) | | Copy the given source directory (and all its contents) to the given target
directory.
|
createJavaProject | protected IJavaProject createJavaProject(String projectName, String[] sourceFolders, String[] libraries, String projectOutput, String compliance) throws CoreException(Code) | | |
createProject | protected IProject createProject(String projectName) throws CoreException(Code) | | |
deleteProject | protected void deleteProject(IProject project1) throws CoreException(Code) | | |
doTest | protected void doTest(String topClassName) throws JavaModelException(Code) | | |
getAllTypes | protected IType[] getAllTypes(ICompilationUnit cu) throws JavaModelException(Code) | | |
getCompilationUnit | protected ICompilationUnit getCompilationUnit(String cuName) throws JavaModelException(Code) | | |
getCompilationUnit | protected ICompilationUnit getCompilationUnit(String rootPath, String packageName, String cuName) throws JavaModelException(Code) | | Returns the specified compilation unit in the given project, root, and package
fragment or null if it does not exist.
|
getExternalJCLPath | protected IPath getExternalJCLPath()(Code) | | Returns the IPath to the external java class library (e.g. jclMin.jar)
|
getExternalJCLPath | protected IPath getExternalJCLPath(String compliance)(Code) | | Returns the IPath to the external java class library (e.g. jclMin.jar)
|
getExternalJCLPathString | protected String getExternalJCLPathString(String compliance)(Code) | | Returns the java.io path to the external java class library (e.g. jclMin.jar)
|
getJavaProject | protected IJavaProject getJavaProject()(Code) | | |
getJavaProjectName | protected String getJavaProjectName()(Code) | | |
getJdkVersion | abstract protected String getJdkVersion()(Code) | | |
getPackageFragment | protected IPackageFragment getPackageFragment(String rootPath, String packageName) throws JavaModelException(Code) | | Returns the specified package fragment in the given project and root, or
null if it does not exist. The rootPath must be specified as a
project relative path. The empty path refers to the default package fragment.
|
getPackageFragmentRoot | protected IPackageFragmentRoot getPackageFragmentRoot(String rootPath) throws JavaModelException(Code) | | Returns the specified package fragment root in the given project, or
null if it does not exist. If relative, the rootPath must be
specified as a project relative path. The empty path refers to the package fragment
root that is the project folder iteslf. If absolute, the rootPath refers to either
an external jar, or a resource internal to the workspace
|
getPluginDirectoryPath | protected String getPluginDirectoryPath()(Code) | | Returns the OS path to the directory that contains this plugin.
|
setUpJCLClasspathVariables | protected void setUpJCLClasspathVariables(String compliance) throws JavaModelException, IOException(Code) | | |
setUpProjectCompliance | protected void setUpProjectCompliance(IJavaProject javaProject, String compliance) throws JavaModelException, IOException(Code) | | |
setupExternalJCL | protected void setupExternalJCL(String jclName) throws IOException(Code) | | Check locally for the required JCL files, .jar and src.zip.
If not available, copy from the project resources.
|
|
|