I know this is a rather old question, but it appears as one of the best matches when searching for "Resource Dependent on an Eclipse Project". (Looking for this, obviously, I myself was looking for a solution.)
Eclipse provides options related to the ProjectScope scope. These settings are saved in files in /<project>/.settings and can be easily added to version control. If you have, for example, set the encoding for a file in your project, you will find org.eclipse.core.resources.prefs in this directory and you will see how the resource plugin (which supports this file) uses a specific scheme to combine the property name and the resource name in the preference key.
Using this as a basis, I implemented a special solution for storing "persistent resource properties in version control" (resource properties with the project scope "aka"). You can see it here . Creating a key and saving properties as settings is simple and easy. In addition, my custom solution monitors file deletion and deletes properties to prevent them from “popping up” if you later create a file with the same name again. It also tracks movements / renames and saves properties associated with the moved / renamed file. Please note that it does not intentionally copy related properties if the file is copied, because this is not the intended behavior for my use case.
It works, but, as usual, with such a complex environment as the Eclipse platform, I probably did not consider every problem. When I have time, I will dig out the source code of the resource plugin and see how to do it correctly. Meanwhile, it works well enough for me.
Michael lipp
source share