RE: Settings
"Andrew Serff" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <3FD99A46C645A441BA9DA50F9BDB93E8019CF1@benhur.denver.impactsci.com> |
Ok, I tried adding the references in the mf in the "Services" and "UI" folders. I reload the module and it is actually showing up in the options, but I get all these IntrospectionExceptions like ever 5 seconds (really annoying). I also got a MissingResourceException for bugs.Bundle. It is there as you know. I don't know what I'm doing wrong. I can't find any documentation on the NB Dev about it either. Let me know if you can help. Thanks Andrew -----Original Message----- From: Andrew Serff [mailto:[email protected]] Sent: Thursday, January 23, 2003 8:28 PM To: [email protected] Subject: Re: Settings ok, i saw that there were references to the setting in the mf.xml, but i don't understand the "folders" I don't know where to add my references to the files. As for the other question, The bug engine pref, I want to be a drop down box with the different engines currently supported. Then query, i just want that to be a text field. Where do I tell it that? How do I populate my combobox? Stuff like that. I saw code that used the settings, that looks pretty easy, but I don't get how you set it up. Thanks! Andrew On Thursday, January 23, 2003, at 08:22 PM, Tor Norbye wrote: > On Thu, 2003-01-23 at 16:47, Andrew Serff wrote: >> Can someone point me to or tell me how to make a Setting panel for the >> bug list module? I copied the Settings.java, SettingsBeanInfo.java >> and >> the Settings.settings files from the usertasks package, and then >> modified it all, but it doesn't seem to work. I don't see where to >> you >> tell it what the properties types (string, Boolean) are. Can anyone >> help me out? I want to use it to set which bug engine to use and what >> your query string is. > > Be sure to check that you got the settings references in mf-layer.xml > and the .settings files as well. > > I'm not sure I understand what you mean by "tell it what the > properties types > are". The BeanInfo identifies the properties and which property > customizer > to use for each; the Settings file provides the actual persistence of > default values for each setting. Then the rest is up to the module (to > look up the settings values and do the right thing.) > > -- Tor > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]