Package org.eclipse.ltk.core.refactoring
Class ContentStamp
java.lang.Object
org.eclipse.ltk.core.refactoring.ContentStamp
A content stamp object represent the content of an
IFile
.
A content stamp object is updated whenever the content of a file
changes. In contrast to a time stamp a content stamp is reverted
to its previous value if the content of the file is reverted back by
performing a corresponding undo change.
Clients of the refactoring framework don't need to take care of content stamps. They are managed by the framework itself.
In version 3.0 not all files in the workspace are annotated with a content stamp. The refactoring framework only adds content stamp to those files where necessary. As of version 3.1 the content stamps are mapped to the resource's modification stamp.
Content stamp are to be compared using the equals(Object)
method.
It is not guaranteed that content stamps are identical for identical files.
This class is not intended to be extended by clients.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Checks whether the stamp is the null stamp or not.
-
Constructor Details
-
ContentStamp
public ContentStamp()
-
-
Method Details
-
isNullStamp
public abstract boolean isNullStamp()Checks whether the stamp is the null stamp or not. A null stamp is generated for files which either don't exist or exist in a closed project.- Returns:
- whether the stamp is the null stamp or not.
-