|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--compositeRefactoring.resources.GetJavaResources
GetJavaResources provides methods to fetch all relevant reources of a java project.
Constructor Summary | |
GetJavaResources()
creates a new GetJavaResources object. |
Method Summary | |
ICompilationUnit |
getJavaCompilationUnit(IFile file)
gets a compilation unit (a .java-file). |
ICompilationUnit |
getJavaCompilationUnit(String projName,
String name)
gets a compilation unit (a .java-file). |
ICompilationUnit |
getJavaCompilationUnit(String projName,
String folderName,
String name)
gets a compilation unit (a .java-file). |
IPackageFragment |
getJavaPackage(IFolder folder)
gets a java package. |
IPackageFragment |
getJavaPackage(String projName,
String name)
gets a java package. |
IJavaProject |
getJavaProject(IProject proj)
gets a java project, the root of all java elements. |
IJavaProject |
getJavaProject(String name)
gets a java project, the root of all java elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GetJavaResources()
Method Detail |
public IJavaProject getJavaProject(IProject proj)
proj
- the project file as stored on the filesystem.public IJavaProject getJavaProject(String name)
name
- the name of the java project.public IPackageFragment getJavaPackage(IFolder folder)
folder
- the folder representing the package on the filesystem.public IPackageFragment getJavaPackage(String projName, String name)
projName
- the name of the project in which the java package is declared.name
- the name of the package.public ICompilationUnit getJavaCompilationUnit(IFile file)
file
- the underlying resource file of the compilation unit as stored on the filesystem.public ICompilationUnit getJavaCompilationUnit(String projName, String name)
projName
- the name of the project in which the .java-file is declared.name
- the name of the compilation unit.public ICompilationUnit getJavaCompilationUnit(String projName, String folderName, String name)
projName
- the name of the project in which the .java-file is declared.folderName
- the name of the package in which the .java-file is declared.name
- the name of the compilation unit.
|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |