|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--compositeRefactoring.refactoringComposite.RefactoringComponent | +--compositeRefactoring.refactoringComposite.RefactoringComposite | +--compositeRefactoring.refactoringComposite.RefactoringComposite_ListImpl
This class is an implementation of RefactoringComposite with a List (java.util.List).
Fields inherited from class compositeRefactoring.refactoringComposite.RefactoringComposite |
DEFAULTNAME |
Fields inherited from class compositeRefactoring.refactoringComposite.RefactoringComponent |
fName |
Constructor Summary | |
RefactoringComposite_ListImpl()
creates a new RefactoringComposite_ListImpl object with a default name. |
|
RefactoringComposite_ListImpl(String name)
creates a new RefactoringComposite_ListImpl object. |
|
RefactoringComposite_ListImpl(String name,
List refParts)
creates a new RefactoringComposite_ListImpl object and adds the RefactoringComponents to the list. |
|
RefactoringComposite_ListImpl(String name,
RefactoringComponent[] nodes)
creates a new RefactoringComposite_ListImpl object and adds the RefactoringComponents to the list. |
Method Summary | |
void |
add(RefactoringComponent node)
adds one RefactoringComponent to the CompositeList. |
void |
addAll(RefactoringComponent[] nodes)
adds all elements of the array to the Compositelist. |
RefactoringStatus |
checkPreconditions(IProgressMonitor pm)
checks the Preconditions of the refactoring. |
IChange |
createChange(IProgressMonitor pm)
creates the change which is to be executed when performing the refactoring. |
RefactoringStatus |
refactor()
this method performs the composite refactoring. |
RefactoringStatus |
undo()
undos the refactoring's change. |
Methods inherited from class compositeRefactoring.refactoringComposite.RefactoringComponent |
getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jdt.internal.corext.refactoring.base.IRefactoring |
getName |
Constructor Detail |
public RefactoringComposite_ListImpl()
public RefactoringComposite_ListImpl(String name)
name
- the name of the CompositeRefactoring.public RefactoringComposite_ListImpl(String name, RefactoringComponent[] nodes)
name
- the name of the CompositeRefactoring.nodes
- the array of RefactoringComponents of this CompositeRefactoringpublic RefactoringComposite_ListImpl(String name, List refParts)
name
- the name of the CompositeRefactoring.refParts
- a List
of the RefactoringComponent s.Method Detail |
public void addAll(RefactoringComponent[] nodes)
nodes
- the array of RefactoringComponent s to be added.public void add(RefactoringComponent node)
node
- the RefactoringComponent to be added.public RefactoringStatus checkPreconditions(IProgressMonitor pm) throws JavaModelException
Iterator
which calls the checkPrecondition methods of the RefactoringComposite children.checkPreconditions
in interface IRefactoring
checkPreconditions
in class RefactoringComposite
pm
- an IProgressMonitor to monitor the method's progresspublic IChange createChange(IProgressMonitor pm) throws JavaModelException
createChange
in interface IRefactoring
createChange
in class RefactoringComposite
pm
- an IProgressMonitor to monitor the method's progresspublic RefactoringStatus refactor()
refactor
in class RefactoringComposite
public RefactoringStatus undo()
undo
in class RefactoringComposite
|
Composite Refactoring v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |