Bug 129764 - Find next/Find Previous works improperly
Summary: Find next/Find Previous works improperly
Status: CLOSED DUPLICATE of bug 44422
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-28 07:10 EST by Volodymyr Bychkoviak CLA
Modified: 2006-03-02 08:01 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volodymyr Bychkoviak CLA 2006-02-28 07:10:07 EST
After setting 'Regular Expressions' check box in Find/Replace dialog it's impossible to find next/previous text fragment in editor if selected fragment contains invalid RE expression (such as open bracket).
Comment 2 Dani Megert CLA 2006-02-28 07:15:55 EST
reopen to reassing.
Comment 3 Dani Megert CLA 2006-02-28 08:30:11 EST
Please provide more details.
Comment 4 Volodymyr Bychkoviak CLA 2006-02-28 10:26:08 EST
1.-Create new project
2.-Create some class
3.-Create method main() in that class
4.-Write following lines in main:
        String s1 = "123(";
        String s2 = "123(";
5.-Press 'Ctrl-F' to invoke 'Find/Replace' dialog. (also can be invoked from menu 'Edit->Find/Replace'
6.-Set 'Regular Expressions' checkbox on.
7.-Close dialog.
8.-Select first occurrence of '123(' in editor
9.-Press 'Ctrl-K' to invoke 'Find Next' action.
10. -'String not found' will be printed in the status line

if you repeat steps 5 through 10 but set 'Regular Expressions' checkbox off on step 6 then it will find next occurrence of '123(' text in editor.

As I understand selected text is treated as regular expression with this option but It seems to me that It's very rare case when we want selected text to be treated as regular expression during search of text fragment.
Comment 5 Dani Megert CLA 2006-02-28 10:37:51 EST

*** This bug has been marked as a duplicate of 44422 ***
Comment 6 Volodymyr Bychkoviak CLA 2006-03-02 08:01:06 EST
closing