This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 293239 - Feature request: Find/Replace in Vex
Summary: Feature request: Find/Replace in Vex
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Carver CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-24 10:41 EDT by Holger Voormann CLA
Modified: 2011-11-09 17:37 EST (History)
1 user (show)

See Also:


Attachments
JUnit tests and implementation - please review! (24.77 KB, patch)
2009-10-24 10:45 EDT, Holger Voormann CLA
d_a_carver: iplog+
Details | Diff
Test failure fix and actions defined for Find Next (Ctrl+K) and Find Previous (Ctrl+Shift+K) (29.42 KB, patch)
2009-10-31 19:45 EDT, Holger Voormann CLA
d_a_carver: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Voormann CLA 2009-10-24 10:41:39 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: HEAD

In text editors the Find/Replace feature is useful for in-document navigation (Find) and powerful for editing (Replace). Vex is also a kind of text editor but does not yet support Find/Replace. Especially in large documents Find/Replace could make navigation faster and replacing less error-prone.
Goal: In Vex Ctrl+F should bring up the Find/Replace dialog with the same functionality as in text editors.

Reproducible: Always
Comment 1 Holger Voormann CLA 2009-10-24 10:45:02 EDT
Created attachment 150443 [details]
JUnit tests and implementation - please review!

Limitation: Scope 'Selected lines' is not supported (unclear: what's the meaning of 'Selected lines' in Vex). Unfortunately, this option can not be disabled.
Comment 2 David Carver CLA 2009-10-28 10:07:50 EDT
Unfortunately, I'll have to send this through IP review due to the size.   I'll get this started today.
Comment 3 Holger Voormann CLA 2009-10-28 11:24:51 EDT
(In reply to comment #2)
Thx!
Only out of interest: What would be the size limit? Do JavaDoc and JUnit count?
Comment 4 David Carver CLA 2009-10-28 11:44:46 EDT
(In reply to comment #3)
> (In reply to comment #2)
> Thx!
> Only out of interest: What would be the size limit? Do JavaDoc and JUnit count?

250 lines of "code".  Even with out java doc and comments, the contribution exceeded that limit.  As a committer you don't have to worry about it, I just have to have IP review contributions from the outside greater than 250 lines of code.
Comment 5 David Carver CLA 2009-10-29 09:21:22 EDT
(In reply to comment #3)
> (In reply to comment #2)
> Thx!
> Only out of interest: What would be the size limit? Do JavaDoc and JUnit count?

Eclipse IP has some basic questions:

1.  Did e authored 100% of the content 
2.  Does he have the rights to donate the content to Eclipse
3.  Does he contribute the content under the EPL
Comment 6 Holger Voormann CLA 2009-10-29 09:40:22 EDT
(In reply to comment #5)
> Eclipse IP has some basic questions:
> 
> 1.  Did he authored 100% of the content
Yes. (TDD aware: Code grew with each new test.)

> 2.  Does he have the rights to donate the content to Eclipse
Yes. (I coded this at home as a private person.)

> 3.  Does he contribute the content under the EPL
Yes. (The new files contain the EPL statement.)
Comment 7 David Carver CLA 2009-10-30 13:32:02 EDT
IP approved the submission.  So I'll work on applying the patch today.  Will post here once it is in place.
Comment 8 David Carver CLA 2009-10-30 13:42:43 EDT
Okay, I have one unit test in this that is failing.  FindWholeWord.  It's matching up on the first xxx in [xxx xxx? xxx] instead of the last xxx.

What I'll do is comment out that one test, add this to the existing VEX test suite, and check in the contribution.  You can then check out the code and see if you can figure out what is happening with that test.  Then just attach a patch for that test failure fix.
Comment 9 Holger Voormann CLA 2009-10-31 19:45:36 EDT
Created attachment 151014 [details]
Test failure fix and actions defined for Find Next (Ctrl+K) and Find Previous (Ctrl+Shift+K)

(In reply to comment #8)
Thank you for applying the patch!
The test failure was an encoding problem. In the test I used German umlauts. Why not set encoding per project and check-in '.settings/org.eclipse.core.resources.prefs' to prevent me making such mistakes? ;-)
Comment 10 David Carver CLA 2009-10-31 20:05:16 EDT
(In reply to comment #9)
> Created an attachment (id=151014) [details]
> Test failure fix and actions defined for Find Next (Ctrl+K) and Find Previous
> (Ctrl+Shift+K)
> 
> (In reply to comment #8)
> Thank you for applying the patch!
> The test failure was an encoding problem. In the test I used German umlauts.
> Why not set encoding per project and check-in
> '.settings/org.eclipse.core.resources.prefs' to prevent me making such
> mistakes? ;-)

Probably should make the default encoding UTF-8 that way it covers pretty much everything.
Comment 11 David Carver CLA 2009-10-31 20:52:57 EDT
Thanks, patch applied.
Comment 12 Florian Thienel CLA 2011-06-02 05:17:38 EDT
Closing resolved bugs.
Comment 13 Florian Thienel CLA 2011-11-09 17:37:07 EST
Moved to Mylyn Docs Vex.