public abstract class RefactoringDescriptorProxy extends PlatformObject implements Comparable<RefactoringDescriptorProxy>
Refactoring descriptors are exposed by the refactoring history service as
lightweight proxy objects. Refactoring descriptor proxies have an efficient
memory representation and are therefore suited to model huge refactoring
histories which may be displayed in the user interface. The refactoring
history service may hand out any number of proxies for a given descriptor.
Proxies only offer direct access to the time stamp getTimeStamp()
,
the related project getProject()
and description
getDescription()
. In order to access other information such as
arguments and comments, clients have to call
requestDescriptor(IProgressMonitor)
in order to obtain the actual
refactoring descriptor.
Refactoring descriptors are potentially heavy weight objects which should not be held on to. Proxies which are retrieved from external sources (e.g. not from the local refactoring history service) may encapsulate refactoring descriptors and should not be held in memory as well.
All time stamps are measured as the milliseconds since January 1, 1970, 00:00:00 GMT.
Note: this class is not intended to be subclassed by clients.
IRefactoringHistoryService
,
RefactoringHistory
Constructor and Description |
---|
RefactoringDescriptorProxy() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RefactoringDescriptorProxy proxy) |
boolean |
equals(Object object) |
abstract String |
getDescription()
Returns a human-readable description of refactoring.
|
abstract String |
getProject()
Returns the name of the associated project.
|
abstract long |
getTimeStamp()
Returns the time stamp of this refactoring.
|
int |
hashCode() |
RefactoringDescriptor |
requestDescriptor(IProgressMonitor monitor)
Resolves this proxy and returns the associated refactoring descriptor.
|
getAdapter
public int compareTo(RefactoringDescriptorProxy proxy)
compareTo
in interface Comparable<RefactoringDescriptorProxy>
public abstract String getDescription()
public abstract String getProject()
null
public abstract long getTimeStamp()
-1
if no time information is
availablepublic RefactoringDescriptor requestDescriptor(IProgressMonitor monitor)
Clients must connect to the refactoring history service first before calling this method.
monitor
- the progress monitor to use, or null
null
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.