Issuezilla
"Andrew Serff" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <3FD99A46C645A441BA9DA50F9BDB93E8019CF0@benhur.denver.impactsci.com> |
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