RE: Settings

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1043432911.2851.163.camel@proto>
I can try to help.

First a meta-question: why are you doing options in the first
place?

It seems nicer to me if you have a "New Query" dialog (just
like we have a New Task dialog in the usertasks module).

So in the bug view I right click and select "New Query" (or/and
it might be a toolbar action, just like New Task). This brings
up a dialog.

Near the top there's a combo box listing the engine types
available: Issuezilla, Bugzilla, etc.

Below it, a customizer for that particular query - probably
supplied by each engine.  For example, for Issuezilla, I
think it would be nice to have something like this:

 | Issuezilla |
 
 base: http://www.netbeans.org

 (*) All issues belonging to user: _______
 ( ) All open bugs for category: ______
 ( ) Custom query 
     URL: __________________________
     (generate URL by visiting
      http://www.netbeans.org/issues/)

Each time you create a new query, you get a new buglist
window showing that query; alternatively, create query
nodes in the bug list and attach the results of each
query under the query node.

You'd store the query information along with the
window data.

Does that make sense?

-- Tor

On Fri, 2003-01-24 at 10:15, Andrew Serff wrote:
> 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]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
-- 
Tor Norbye <[email protected]>
Sun Microsystems, Inc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.