This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 112544 - * wildcard in the 'Go to Type' dialog doesn't work when name starts with it
Summary: * wildcard in the 'Go to Type' dialog doesn't work when name starts with it
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 14:07 UTC by _ leonchiver
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ leonchiver 2007-08-10 14:07:09 UTC
if you type JB*n, it you'll find JButton, but if you type only *tton no types are found.
Comment 1 Jan Lahoda 2007-08-28 19:44:14 UTC
As designed, AFAIK.
Comment 2 Petr Hrebejk 2007-08-29 08:09:47 UTC
Yes, unfortunately as designed. But leaving it open I should give a reasonable message when user does it.
Comment 3 Tomas Zezula 2007-08-29 08:43:32 UTC
The problem with wildcard at the beginning is that it's a greedy search, it may take a long time. The pattern entered
into the GoTo type is rewritten into pattern* (prefix), if the pattern starts with *, it is a *pattern* which implies
that the pattern has to be compared with all the class names in the index. But anyway we may try it.
Comment 4 Petr Hrebejk 2007-09-11 13:04:02 UTC
Added the warning:

Checking in GoToTypeAction.java;
/cvs/utilities/jumpto/src/org/netbeans/modules/jumpto/type/GoToTypeAction.java,v  <--  GoToTypeAction.java
new revision: 1.7; previous revision: 1.6
done
Checking in GoToPanel.form;
/cvs/utilities/jumpto/src/org/netbeans/modules/jumpto/type/GoToPanel.form,v  <--  GoToPanel.form
new revision: 1.3; previous revision: 1.2
done
Checking in GoToPanel.java;
/cvs/utilities/jumpto/src/org/netbeans/modules/jumpto/type/GoToPanel.java,v  <--  GoToPanel.java
new revision: 1.6; previous revision: 1.5
done
Checking in Bundle.properties;
/cvs/utilities/jumpto/src/org/netbeans/modules/jumpto/type/Bundle.properties,v  <--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done