Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Persistent Properties
Persistent Properties [message #137635] Mon, 29 September 2003 17:27 Go to next message
Eclipse UserFriend
Originally posted by: kharris.unveil.com

I have persistent properties on a particular file resource, but they don't
get set to the default values without explicitly going into the properties
dialog and setting them. The file may occasionally be deleted and recreated
or copied from another location. Should I set the properties when I create
the file, or listen for resource change events when the file is downloaded
from source control? Any other ideas?

Thanks,
Karen
Re: Persistent Properties [message #137669 is a reply to message #137635] Mon, 29 September 2003 17:43 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

Your best bet is to do it lazily. That way you don't need to have
listeners running all of the time just for an infrequent occurence.

By lazily I mean when you go to retrieve a particular property, if it
returns null (I assume you are using IResource.getPersistentProperty)),
just return what you want to be the true default value. That way unless
it is actually set to something, no time or space is wasted on it.

Rich
Previous Topic:External Tools Builder priority
Next Topic:Getting correct keybindings using MultiPageEditor
Goto Forum:
  


Current Time: Mon Jul 14 02:38:43 EDT 2025

Powered by FUDForum. Page generated in 0.07826 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top