Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 299503

Summary: [find/replace] 'Whole word' option doesn't re-enable after RE option is turned off
Product: [Eclipse Project] Platform Reporter: Navid Mehregani <nmehrega>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Find dialog none

Description Navid Mehregani CLA 2010-01-13 10:33:52 EST
Follow the instructions below to reproduce this problem:

- Open a Java file
- Press CTRL+F to open Find/Replace Dialog
- Select Regular expressions check box
- Type in main.* (or some other function name in your text file) under find text box  (notice the 'Whole word' check box is disabled as expected)
- Click on Find button
- Turn off 'Regular expressions' check box.  At this point 'Whole word' check box should be re-enabled, but it stays disabled (see attached snapshot).

I tried this in Eclipse 3.6M2 release.
Comment 1 Navid Mehregani CLA 2010-01-13 10:35:09 EST
Created attachment 155990 [details]
Find dialog
Comment 2 Dani Megert CLA 2010-01-13 10:59:45 EST
I cannot reproduce this using Eclipse SDK 3.6 M2 or latest (I20100112-0800).
Anything in .log? Are you using Windows XP as indicated?
Comment 3 Dani Megert CLA 2010-01-13 11:05:06 EST
Should have looked better: the option is disabled because the search string is not a word and hence that option is not available.
Comment 4 Navid Mehregani CLA 2010-01-13 11:53:13 EST
hmm, 'Whole word' is disabled as soon as a period is typed in 'find' text box.  I always assumed anything that doesn't have a space before or after it can be considered a "Whole Word".  

EditPlus, for example, works as follows:

Searching for "blah." with whole word selected would find the first instance, but not the second one.

blah.  blah.some text following.

This is not a huge deal so we can leave the bug as invalid.