public final class RefactoringSession extends Object
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener listener)
Adds progress listener to this RefactoringSession
|
static RefactoringSession |
create(String description)
Creates a new refactoring session.
|
Problem |
doRefactoring(boolean saveAfterDone)
process all elements from elements bags,
do all fileChanges
and call all commits
|
void |
finished()
Inform the session it, and all its plugins, are finished.
|
Collection<RefactoringElement> |
getRefactoringElements()
Get elements from session
|
void |
removeProgressListener(ProgressListener listener)
Remove progress listener from this RefactoringSession
|
Problem |
undoRefactoring(boolean saveAfterDone)
do undo of previous doRefactoring()
|
@NonNull public static RefactoringSession create(@NonNull String description)
description
- textual description of this session@CheckForNull public Problem doRefactoring(boolean saveAfterDone)
saveAfterDone
- save all if true@CheckForNull public Problem undoRefactoring(boolean saveAfterDone)
saveAfterDone
- save all if true@NonNull public Collection<RefactoringElement> getRefactoringElements()
RefactoringSession.finished()
public void finished()
RefactoringSession.getRefactoringElements()
public void addProgressListener(@NonNull ProgressListener listener)
listener
- to addpublic void removeProgressListener(@NonNull ProgressListener listener)
listener
- to remove