Bug 440507 - [find/replace] Add (?x) and (?U) flags to the tooltips for regular expressions
Summary: [find/replace] Add (?x) and (?U) flags to the tooltips for regular expressions
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2014-07-28 02:50 EDT by Lukas Eder CLA
Modified: 2016-09-09 13:09 EDT (History)
2 users (show)

See Also:


Attachments
01 Regex flags explanation in search tooltip (16.35 KB, image/png)
2014-07-28 02:50 EDT, Lukas Eder CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Eder CLA 2014-07-28 02:50:49 EDT
Created attachment 245421 [details]
01 Regex flags explanation in search tooltip

This is probably used quite scarcely, but I find the tool tip in Eclipse very useful to remind me of what the various ismd flags really mean.

Support for the COMMENTS (?x:...) flag has been around for ages:

- http://docs.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html#COMMENTS

... and in Java 7, support for the UNICODE_CHARACTER_CLASS (?U:...) was added

- http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#UNICODE_CHARACTER_CLASS

It would be great if these flags were also documented / supported from the Eclipse search feature. Probably, a version-check would need to be done to see if Eclipes is running on Java 7 for UNICODE_CHARACTER_CLASS
Comment 1 Dani Megert CLA 2014-07-28 03:12:07 EDT
High quality patch would be welcome.

Entry point for fix:
org.eclipse.jface.text.FindReplaceDocumentAdapterContentProposalProvider