If you want to hide some files in an eclipse-based application, you can call
IFolder byteFolder; // Some folder byteFolder.setTeamPrivateMember(true); byteFolder.setDerived(true);
setDerived is an IResource interface method
The output resource is a regular file or folder created in the course of translation, compilation, copying or otherwise processing other files. Derived resources are not raw data and can be recreated from other resources. it is commonplace to exclude derivative resources from the version and configuration management, since they would otherwise clutter up the repository command with the version of these ever-changing files as each user restores them.
If a resource, or any of its ancestors, is designated as a derivative, the team provider should assume that the resource is not in the default version and configuration. This resource should only be stored in the command repository if the user explicitly indicates that this resource is worth the savings.
Newly created resources are not marked as received; rather, the character should be set explicitly using setDerived (true). Derived characters are stored in-memory, and discarded when resources are deleted. Derived labels are saved to disk when the project is closed or when the workspace is saved.
Projects and the root of the workspace has never been considered derivative; trying to mark them as received is ignored.
This operation does not result in a resource change event and does not start auto objects.
source share