Community
Participate
Working Groups
3.3 M5 Currently I can use '<' and ' ' to terminate the search string. This however does not work when entering camel case, e.g. 'DP<'
Created attachment 59563 [details] Enhancement inside patch
Patch released for build>20070222
Rolling back as this is breaking our suites
Patch rolled back for build >20070223
Created attachment 59802 [details] Enhancments inside patch
Created attachment 59856 [details] Enchancement with tests inside patch Patch contains changes for SearchPattern and SearchPatterAuto.
Patch released for build >20070301
Does not work when "<"-terminated camel case pattern is pasted, see explanation in bug 174349 comment 4. Shouldn't ship like this since the behavior is unpredictable.
(In reply to comment #8) Sorry, wrong reference. Explanation is in bug 184688 comment 4.
I hope this makes it into RC1.
I removed all changes described in this enhancement. All string ended by '<' or ' ' are treated as exact match string. This enhancement was cause of bug 184688.
This is not fixed.
Markus is the problem with how this patch works or do you think this is a bad idea in general?
> Markus is the problem with how this patch works or do you think this is a bad > idea in general? I think the feature is a good idea, but we can only ship it if it works reliably. I think adapting JDT/Core's SearchPattern is not an option at this time. A possible workaround for 3.3 would be special code in FilteredTypesSelectionDialog#fillContentProvider(..): If the pattern is a camelCase pattern with a terminator, then don't call setMatchEverythingMode(true). I have not tested this yet, but I think it should work if ui.dialogs.SearchPattern was changed again to support camelCase in combination with a terminator. (Note that ui.dialogs.SearchPattern cannot just be reverted to the original fix for bug 174349, since the problematic calls to trim() must not be restored.)
Created attachment 68637 [details] Fix
Created attachment 68638 [details] mylar/context/zip
Created attachment 68647 [details] Fix Patch for SearchPattern and SearchPatternAuto
Created attachment 68650 [details] Fix Patch for FilteredTypesSelectionDialog
UI portion released to HEAD. Szymon assures me that this should not have any adverse affect on JDT.
The only visible issue is filtering for camel case patterns with a terminator. Both changes to UI and JDT are necessary to fix the bug. Because we won't be able to commit UI changes tomorrow, we have to do this today. The issue will be fixed when the JDT patch will be applied.
Thanks, released a slightly modified version of comment 18 to HEAD.
Verified in I20070525-0010. Thanks!