|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manager for proxies built from file. This interface is not intended to be implemented by client.
| Method Summary | |
|---|---|
void |
cacheProxy(org.eclipse.core.resources.IFile file,
IProxyNode proxy)
Put the specified proxy in the cache so further calls to getProxy(IFile, Object) return in an efficient way the same cached proxy. |
IProxyNode |
findProxyByID(IProxyNode proxy,
java.lang.String uid)
Returns the proxy which has the given uid. |
IProxyNode |
getCorrespondingProxy(java.lang.Object object)
Retrieves the node associated to the given object. |
IProxyNode |
getCorrespondingProxy(java.lang.String fileName,
java.lang.String identifier)
Retrieves the node using its underlying resource and its identifier. |
java.lang.Object |
getParent(IProxyNode proxy)
Returns the parent of the given proxy node. |
IProxyNode |
getProxy(org.eclipse.core.resources.IFile file,
java.lang.Object parent)
Returns the proxy node corresponding to the given file. |
boolean |
isaCachedFile(org.eclipse.core.resources.IFile file)
Returns whether the given file is already in the local proxy data base. |
IProxyNode |
uncacheProxy(org.eclipse.core.resources.IFile file)
Removes the proxy entry associated to the given file. |
IProxyNode |
updateProxy(org.eclipse.core.resources.IFile file,
java.lang.Object parent)
Computes a new proxy using registered file proxy factories. |
| Method Detail |
public IProxyNode getProxy(org.eclipse.core.resources.IFile file,
java.lang.Object parent)
file - the file to convertparent - the parent of the proxy node in case of creation. This parameter may be
null. In this case, this method will only return a proxy node already
cached. If this parameter is not null, this method may instantiate the proxy it is not
already cached and ensures that the returned proxy has parent as a parent.
public void cacheProxy(org.eclipse.core.resources.IFile file,
IProxyNode proxy)
file - public boolean isaCachedFile(org.eclipse.core.resources.IFile file)
file -
public IProxyNode uncacheProxy(org.eclipse.core.resources.IFile file)
file - public IProxyNode getCorrespondingProxy(java.lang.Object object)
object - An object adaptable to IProxy.
null if such proxy node does not exist.
public IProxyNode getCorrespondingProxy(java.lang.String fileName,
java.lang.String identifier)
fileName - name of the underlying resource of the searched proxyidentifier - identifier of the searched proxy
null if not found.
public IProxyNode findProxyByID(IProxyNode proxy,
java.lang.String uid)
proxy - root of the proxy tree where the search is done.uid - the uid of the searched proxy.
null if there is no such proxy found in the complete given tree of proxy.
public IProxyNode updateProxy(org.eclipse.core.resources.IFile file,
java.lang.Object parent)
file - the file from which the proxy is derived.parent - the parent node to pass to the factory.
public java.lang.Object getParent(IProxyNode proxy)
proxy - a proxy node
null if this proxy node has not been cached.
|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||