Class RefactoringHistory
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.ltk.core.refactoring.history.RefactoringHistory
- All Implemented Interfaces:
IAdaptable
Object which represents a sequence of executed refactorings with optional time
information.
Refactoring histories are exposed by the refactoring history service as result of queries and contain only lightweight proxy objects. The refactoring history service may hand out any number of refactoring histories and associated refactoring descriptor proxies for any given query.
Note: this class may be extended to provide different implementations
- Since:
- 3.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RefactoringDescriptorProxy[]Returns the refactoring descriptors of this history, in descending order of their time stamps.abstract booleanisEmpty()Is the refactoring history empty?abstract RefactoringHistoryremoveAll(RefactoringHistory history) Returns this refactoring history with all entries from the other history removed.Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
-
Constructor Details
-
RefactoringHistory
public RefactoringHistory()
-
-
Method Details
-
getDescriptors
Returns the refactoring descriptors of this history, in descending order of their time stamps.- Returns:
- the refactoring descriptors, or an empty array
-
isEmpty
public abstract boolean isEmpty()Is the refactoring history empty?- Returns:
trueif the history is empty,falseotherwise
-
removeAll
Returns this refactoring history with all entries from the other history removed.The current refactoring history remains unchanged.
- Parameters:
history- the refactoring history- Returns:
- the resulting refactoring history
-