org.eclipse.ltk.core.refactoring.history
Class RefactoringHistory
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.ltk.core.refactoring.history.RefactoringHistory
-
All Implemented Interfaces:
-
IAdaptable
-
public abstract class RefactoringHistory
- extends
PlatformObject
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:
-
IRefactoringHistoryService
,
RefactoringDescriptorProxy
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
RefactoringHistory
public RefactoringHistory()
getDescriptors
public abstract
RefactoringDescriptorProxy[] 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:
-
true
if the history is empty, false
otherwise
removeAll
public abstract
RefactoringHistory removeAll(
RefactoringHistory history)
- 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
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.