|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.internal.corext.refactoring.base.Refactoring | +--compositeRefactoring.refactoring.CreateAbstractClassRefactoring
This class is the representation of a refactoring performing an create abstract class transformation.
The class which will be created looks something like
public abstract class 'classname' {}
. It is also formatted.
Constructor Summary | |
CreateAbstractClassRefactoring(IPackageFragment pack,
String name)
creates a CreateAbstracClassRefactoring. |
Method Summary | |
RefactoringStatus |
checkActivation(IProgressMonitor pm)
checks if there is a package in which the class can be created. |
RefactoringStatus |
checkInput(IProgressMonitor pm)
checks if there is already a class in the package with this class's name. |
IChange |
createChange(IProgressMonitor pm)
creates the change object for this refactoring. |
String |
getName()
gets the name of the refactoring. |
ICompilationUnit |
getNewCompilationUnit()
gets the new created compilation unit (the .java-file). |
Methods inherited from class org.eclipse.jdt.internal.corext.refactoring.base.Refactoring |
checkPreconditions, getUndoManager, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CreateAbstractClassRefactoring(IPackageFragment pack, String name)
pack
- the package in which the class (that is the compilation unit) is to be created.name
- the name of the new abstract class.Method Detail |
public RefactoringStatus checkActivation(IProgressMonitor pm) throws JavaModelException
checkActivation
in class Refactoring
pm
- the progress monitor which tracks the check.public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException
checkInput
in class Refactoring
pm
- the progress monitor which tracks the check.public IChange createChange(IProgressMonitor pm)
pm
- the progress monitor tracking the change.public String getName()
public ICompilationUnit getNewCompilationUnit()
|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |