|Re: Properties for non IResource objects [message #504466 is a reply to message #504339]
||Sat, 19 December 2009 20:34
| Francis Upton IV
Registered: July 2009
Location: Oakland, CA
It should allow you to post immediately as far as I know. You could send an email to the webmaster or file a bug against the Eclipse Foundation on this point.|
Regarding keeping properties persistent. If you only have a small amount of properties, then you can use the persistent properties mechanism associated with the resource (see IResource.setPersistentProperties). It's really only designed for a small amount of information though (under 2K).
And another issue is that it's only stored with the resource while it's in the workspace. That is if you check in this file you need to make sure you store the properties in another form as this will not follow the file into source control. You also have to design your property sheet to update these.
I do use these for some things in my RCP application and I keep a parallel file in .settings at the project level that records the persistent properties for all of the resources in the project. That way this file can be checked in and out with the project so that the project can be moved across workspaces. This is work you have to so yourself though.
Platform UI Committer for Common Navigator
Powered by FUDForum
. Page generated in 0.26063 seconds