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

Bug 348277

Summary: [api] Expose PatternConstructor
Product: [Eclipse Project] Platform Reporter: Kevin Sawicki <kevin>
Component: SearchAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.7Keywords: api
Target Milestone: 3.8 M5   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 310933    
Attachments:
Description Flags
Git Search dialog screenshot none

Description Kevin Sawicki CLA 2011-06-03 16:31:25 EDT
EGit 1.0 uses org.eclipse.search.internal.core.text.PatternConstructor.createPattern to create
patterns to match commit messages in the Git Search dialog. 

This class is internal and I haven't found a way to access it directly or indirectly without
getting a discouraged access violation.
Comment 1 Dani Megert CLA 2011-06-04 02:13:54 EDT
>create patterns to match commit messages in the Git Search dialog.
Is that dialog part of the general search dialog? Can you attach a screenshot?
Comment 2 Kevin Sawicki CLA 2011-06-05 19:00:20 EDT
Created attachment 197369 [details]
Git Search dialog screenshot
Comment 3 Dani Megert CLA 2011-06-06 02:38:38 EDT
Which of the 'createPattern' methods do you need?
Comment 4 Kevin Sawicki CLA 2011-06-06 13:57:12 EDT
We are using PatternConstructor.createPattern(String pattern, boolean isCaseSensitive, boolean isRegex)
Comment 5 Dani Megert CLA 2011-12-13 10:41:46 EST
(In reply to comment #4)
> We are using PatternConstructor.createPattern(String pattern, boolean
> isCaseSensitive, boolean isRegex)

Fixed in master: ea87859a5d35cb349a6bc0de0278150a04f6bab2

See org.eclipse.search.core.text.TextSearchEngine.createPattern(String, boolean, boolean).

Please verify in one of the next builds whether this fits your needs.
Comment 6 Dani Megert CLA 2011-12-13 10:41:55 EST
.