public interface IRemoteResource
IRemoteResource remoteRes = (IRemoteResource)resource.getAdapter(IRemoteResource.class);
if (remoteRes != null) {
URI location = remoteRes.getDefaultLocationURI();
...
}
Modifier and Type | Method and Description |
---|---|
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
|
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 refreshorg.eclipse.core.runtime.CoreException
- if the underlying synchronization failsvoid setResource(org.eclipse.core.resources.IResource resource)
resource
- platform resource corresponding to this remote resource