|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.ltk.core.refactoring.RefactoringDescriptorProxy
Proxy to a refactoring descriptor.
Refactoring descriptors are exposed by the refactoring history service as
lightweight proxy objects. 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() and description
getDescription(). In order to access other information such as
arguments and comments, clients have to resolve the proxy by calling
requestDescriptor(IProgressMonitor) to obtain the refactoring
descriptor.
Refactoring descriptors are potentially heavyweight objects which should not be held on to. Proxies which are retrieved from external sources may encapsulate refactoring descriptors and should not be held in memory as well.
Note: this class is not intended to be subclassed and instantiated by clients.
Note: This API is considered experimental and may change in the near future.
| Constructor Summary | |
|---|---|
RefactoringDescriptorProxy(String description,
long stamp)
Creates a new refactoring descriptor proxy. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a human-readable description of the particular refactoring instance. |
long |
getTimeStamp()
Returns the time stamp of this refactoring. |
RefactoringDescriptor |
requestDescriptor(IProgressMonitor monitor)
Resolves this proxy and returns the associated refactoring descriptor. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RefactoringDescriptorProxy(String description,
long stamp)
description - a non-empty human-readable description of the particular
refactoring instancestamp - the time stamp of the refactoring| Method Detail |
public String getDescription()
public long getTimeStamp()
-1 if no time information is
availablepublic RefactoringDescriptor requestDescriptor(IProgressMonitor monitor)
This method is not intended to be overridden outside the refactoring framework.
monitor - the progress monitor to use, or null
nullpublic String toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.