|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRemoteResource
Abstraction of a remote resource. There are currently two types of remote resources: fully remote and synchronized. This
interface provides a common mechanism for accessing resource information from either type.
Usage:
IRemoteResource remoteRes = (IRemoteResource)resource.getAdapter(IRemoteResource.class);
if (remoteRes != null) {
URI location = remoteRes.getDefaultLocationURI();
...
}
| Method Summary | |
|---|---|
java.net.URI |
getActiveLocationURI()
Get the active location URI of the resource in the remote project. |
org.eclipse.core.resources.IResource |
getResource()
Get the platform resource corresponding to the remote resource |
void |
refresh(org.eclipse.core.runtime.IProgressMonitor monitor)
Synchronize the resource with the underlying filesystem. |
void |
setResource(org.eclipse.core.resources.IResource resource)
Set the platform resource |
| Method Detail |
|---|
java.net.URI getActiveLocationURI()
IResource.getLocationURI()).
For fully remote projects, this is just the URI of the remote resource. For synchronized projects, this is the URI of the
resource from the active synchronization target.
org.eclipse.core.resources.IResource getResource()
void refresh(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
monitor - progress monitor to cancel refresh
org.eclipse.core.runtime.CoreException - if the underlying synchronization failsvoid setResource(org.eclipse.core.resources.IResource resource)
resource - platform resource corresponding to this remote resource
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||