Re: Issuezilla

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1043378461.2851.141.camel@proto>
Great, go for it.

-- Tor

On Thu, 2003-01-23 at 15:49, Andrew Serff wrote:
> Tor,
> 
> Here is what I wanted to change about the way you currently get the
> tasklist.bugs.query:
> 
> Currently, in IZBugEngine.doRefresh() explicity set the base url to the
> netbeans.org issuezilla url.  Yet, you check to see if what the user
> entered starts with that part or the url.  So currently, you can't point
> the bug engine at anything but the netbeans bug DB.  So here is what I
> was going to change:
> 
> Old Code:
> if (query == null) {
> 	// TEMPORARY HACK     TODO
>       //BIG LONG MESSAGE      
> 	return;
> } else {
> 	// See if I should strip out the prefix
>       if
> (query.startsWith("http://www.netbeans.org/issues/buglist.cgi?")) {
>       	query = query.substring(43);
> 	}
> }
> 
> New Code:
> if (query == null) {
> 	// TEMPORARY HACK     TODO
>       //CHANGE Big long message to show they need the full url      
> 	return;
> } else {
> 	//get the baseurl
>       int index = query.indexOf("?");
>       if (index != -1) {
>       	baseurl = query.substring(0, index + 1);
>             query = query.substring(index + 1);
> 	} else {
>       	//we have to have the URL
>             TopManager.getDefault().notify(new
> NotifyDescriptor.Message("Tasklist bug summary:\nAdd -J-
> Dnetbeans.tasklist.bugquery=You must have the full URL for this
> query"));
>       }
> }
> 
> Do you see any problems with doing this?  Besides that the users will
> have to change their queries?  Let me know what you think.
> 
> Andrew
> 
> 
> 
> ---------------------------------------------------------------------
> 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.