org.eclipse.hyades.test.ui.internal.navigator.proxy
Class FileProxyMetadataPersister
java.lang.Object
org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyMetadataPersister
- All Implemented Interfaces:
- IFileProxyPersister
public class FileProxyMetadataPersister
- extends java.lang.Object
- implements IFileProxyPersister
|
Method Summary |
protected java.io.File |
createFile(org.eclipse.core.runtime.IPath path)
|
protected java.io.Reader |
createReader(org.eclipse.core.resources.IFile file)
|
protected java.io.Writer |
createWriter(org.eclipse.core.resources.IFile file)
|
protected org.eclipse.core.runtime.IPath |
getStorageArea()
|
protected org.eclipse.core.runtime.IPath |
getStoragePath(org.eclipse.core.resources.IFile file)
|
org.eclipse.hyades.test.ui.navigator.IProxyNode |
loadProxy(org.eclipse.core.resources.IFile file)
|
void |
saveProxy(org.eclipse.core.resources.IFile file,
org.eclipse.hyades.test.ui.navigator.IPersistableProxyNode proxy)
Saves the given proxy node in both cache and file system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileProxyMetadataPersister
public FileProxyMetadataPersister()
getStorageArea
protected org.eclipse.core.runtime.IPath getStorageArea()
getStoragePath
protected org.eclipse.core.runtime.IPath getStoragePath(org.eclipse.core.resources.IFile file)
createWriter
protected java.io.Writer createWriter(org.eclipse.core.resources.IFile file)
throws java.io.IOException
- Throws:
java.io.IOException
createReader
protected java.io.Reader createReader(org.eclipse.core.resources.IFile file)
createFile
protected java.io.File createFile(org.eclipse.core.runtime.IPath path)
loadProxy
public org.eclipse.hyades.test.ui.navigator.IProxyNode loadProxy(org.eclipse.core.resources.IFile file)
- Specified by:
loadProxy in interface IFileProxyPersister
- Returns:
saveProxy
public void saveProxy(org.eclipse.core.resources.IFile file,
org.eclipse.hyades.test.ui.navigator.IPersistableProxyNode proxy)
- Description copied from interface:
IFileProxyPersister
- Saves the given proxy node in both cache and file system. The file system persistency is delegated to the Eclipse marker.
- Specified by:
saveProxy in interface IFileProxyPersister
- Parameters:
file - the file from which this proxy node comes from.proxy - the proxy node to save.