Re: Settings
Andrew Serff <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <[email protected]> |
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] >