|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.files.ui.resources.SystemRemoteResource
This class is the internal implementation of the ISystemRemoteResource interface.
| Field Summary | |
|---|---|
protected ISystemRemotePath |
path
|
| Constructor Summary | |
|---|---|
SystemRemoteResource(ISystemRemotePath path)
Constructor for SystemRemoteResource. |
|
| Method Summary | |
|---|---|
ISystemRemoteMarker |
createMarker(String type)
Creates and returns the marker of the specified type on this resource. |
void |
deleteMarkers(String type,
boolean includeSubtypes)
Deletes all markers on this resource of the given type, and optionally deletes such markers from its children. |
boolean |
exists()
Returns whether this resource exists on the remote server. |
boolean |
existsLocally()
|
ISystemRemoteMarker |
findMarker(long id)
Returns the marker with the specified id on this resource, or null if there is no such marker. |
ISystemRemoteMarker[] |
findMarkers(String type,
boolean includeSubtypes)
Returns all markers of the specified type on this resource, and optionally, on its children. |
File |
getLocalCopy()
|
boolean |
getLocalLastModifiedTime()
Returns the last modified time on the client. |
ISystemRemotePath |
getLocation()
|
ISystemRemoteMarker |
getMarker(long id)
Gets the marker with the given id. |
String |
getPersistentProperty(QualifiedName key)
Returns the value of the persistent property of this resource identified by the given key, or null if this resource has no such property. |
boolean |
getRemoteLastModifiedTime()
Returns the last modified time on the server. |
SystemRemoteResourceInfo |
getResourceInfo()
Get the resource info. |
Object |
getSessionProperty(QualifiedName key)
Returns the value of the session property of this resource identified by the given key, or null if this resource has no such property. |
boolean |
isExistsLocally()
Returns whether a local copy of the file exists. |
boolean |
isSynchronized()
Returns whether the local copy, if there is one, is in sync with the remote copy. |
void |
setPersistentProperty(QualifiedName key,
String value)
Sets the value of the persistent property of this resource identified by the given key. |
void |
setSessionProperty(QualifiedName key,
Object value)
Sets the value of the session property of this resource identified by the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ISystemRemotePath path
| Constructor Detail |
public SystemRemoteResource(ISystemRemotePath path)
| Method Detail |
public SystemRemoteResourceInfo getResourceInfo()
public ISystemRemoteMarker createMarker(String type)
ISystemRemoteResource
createMarker in interface ISystemRemoteResourcetype - the marker type
ISystemRemoteResource.createMarker(String)
public void deleteMarkers(String type,
boolean includeSubtypes)
ISystemRemoteResource
deleteMarkers in interface ISystemRemoteResourcetype - the marker type, or null to indicate all types.includeSubtypes - whether or not to consider the subtypes of the given typeISystemRemoteResource.deleteMarkers(String, boolean)public ISystemRemoteMarker findMarker(long id)
ISystemRemoteResource
findMarker in interface ISystemRemoteResourceid - the id of the marker to find
nullISystemRemoteResource.findMarker(long)
public ISystemRemoteMarker[] findMarkers(String type,
boolean includeSubtypes)
ISystemRemoteResource
findMarkers in interface ISystemRemoteResourcetype - the marker type, or null to indicate all types.includeSubtypes - whether or not to consider the subtypes of the given type
ISystemRemoteResource.findMarkers(String, boolean)public ISystemRemoteMarker getMarker(long id)
ISystemRemoteResource
getMarker in interface ISystemRemoteResourceid - the marker id.ISystemRemoteResource.getMarker(long)public boolean exists()
ISystemRemoteResource
exists in interface ISystemRemoteResourcetrue if the resource exists, false otherwiseISystemRemoteResource.exists()public ISystemRemotePath getLocation()
public boolean existsLocally()
public File getLocalCopy()
public String getPersistentProperty(QualifiedName key)
ISystemRemoteResourcenull if this resource has no such property.
getPersistentProperty in interface ISystemRemoteResourcekey - the qualified name of the property
null if this resource has no such propertyISystemRemoteResource.getPersistentProperty(QualifiedName)public Object getSessionProperty(QualifiedName key)
ISystemRemoteResourcenull if this resource has no such property.
getSessionProperty in interface ISystemRemoteResourcekey - the qualified name of the property
null if this resource has no such propertyISystemRemoteResource.getSessionProperty(QualifiedName)
public void setPersistentProperty(QualifiedName key,
String value)
ISystemRemoteResourcenull,
the persistent property is removed from this resource. The change
is made immediately on disk.
Persistent properties are intended to be used by plug-ins to store resource-specific information that should be persisted across platform sessions. The value of a persistent property is a string which should be short (i.e., under 2KB). Unlike session properties, persistent properties are stored on disk and maintained across workspace shutdown and restart.
The qualifier part of the property name must be the unique identifier
of the declaring plug-in (e.g. "com.example.plugin").
setPersistentProperty in interface ISystemRemoteResourcekey - the qualified name of the propertyvalue - the string value of the property,
or null if the property is to be removedISystemRemoteResource.setPersistentProperty(QualifiedName, String)
public void setSessionProperty(QualifiedName key,
Object value)
ISystemRemoteResourcenull,
the session property is removed from this resource.
Sessions properties are intended to be used as a caching mechanism by ISV plug-ins. They allow key-object associations to be stored with existing resources in the workspace. These key-value associations are maintained in memory (at all times), and the information is lost when a resource is deleted from the workspace, when the parent project is closed, or when the workspace is closed.
The qualifier part of the property name must be the unique identifier
of the declaring plug-in (e.g. "com.example.plugin").
setSessionProperty in interface ISystemRemoteResourcekey - the qualified name of the propertyvalue - the value of the session property,
or null if the property is to be removedISystemRemoteResource.setSessionProperty(QualifiedName, Object)public boolean getLocalLastModifiedTime()
ISystemRemoteResource
getLocalLastModifiedTime in interface ISystemRemoteResourceISystemRemoteResource.getLocalLastModifiedTime()public boolean getRemoteLastModifiedTime()
ISystemRemoteResource
getRemoteLastModifiedTime in interface ISystemRemoteResourceISystemRemoteResource.getRemoteLastModifiedTime()public boolean isExistsLocally()
ISystemRemoteResource
isExistsLocally in interface ISystemRemoteResourceISystemRemoteResource.isExistsLocally()public boolean isSynchronized()
ISystemRemoteResource
isSynchronized in interface ISystemRemoteResourceISystemRemoteResource.isSynchronized()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||