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.
Build: NetBeans IDE 3.3.1-dev (Build 200201090957) Try this: 1.) trigger action Search Filesystem (e.g. on sampledir directory) 2.) start search for a SUBSTRING, e.g. "memory" 3.) in Search Results dialogs try to single/double click on some "Position within the file" list box Now try the same with this change: 2.) start search for a REGULAR EXPRESSION, e.g. "memory" or "mem*" The second scenario has following problems: 1.) double click (in Position within the file) does not open file 2.) single click does not focus line with the search result 3.) if file is already opened, the annotation is added, but double click remove annotation what is strange.
It is strange, I will investigate it soon.
Problems 1 and 2 fixed. Issue 3 remains because I am not sure how it could behave. I do not know RE annotations reason. And also it looks it is not possible to remove annotation by different way when I can not listen on deselection.
Thanx for fixing first two problems. However, I'm reopening the issue because the third problem was not fixed neither explained current behaviour. And it seems to me still very strange. What is the logic of this behaviour? Why second click removes the annotation? Does UI agree with current behaviour?
Because I got Utilities module when RE annotations was already implemented I do not know reason why. Why it is here and what is an intention to have it. So I am looking forward to know right reason.
If nobody from UI or original author (Peter Zavadsky) will explain correct behavior, I will close issue because it is not defect for me. OK?
I agree that it is not defect from developer point of view, but I still see it as usability bug. And although this feature might not be used often we should fix it/correct it. Closing issue does not solve anything. The better seems to me to move the issue to UI/HIE team and let them decide what is the correct behaviour. My 2 cents.
I suggest to have consistent behavior, it means the same as when you do "substring" search (don't use annotation at all).
Sounds good to me. Consistency is good thing. :-) The alternative (which somebody proposed a long time ago, maybe it was PetrZ) was to use annotations also for substring search and annotate just found string(s). It would be just part line annotation and not the whole line annotation as it is for reg exp search.
Set target milestone to TBD
Fixed in the trunk, thus also eliminating bug #33965 ("Cann't remove highlighting from editor"). Modified files: utilities/src/org/netbeans/modules/search/types: FullTextType.java (revision 1.38)
Strings found by regular expression search are now highlighted using the same way as for strings found by substring search.