Bug 132833 - Use new Field Assist for Regex fields
Summary: Use new Field Assist for Regex fields
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 44422 80667
Blocks:
  Show dependency tree
 
Reported: 2006-03-22 09:18 EST by Dani Megert CLA
Modified: 2008-04-25 06:57 EDT (History)
5 users (show)

See Also:


Attachments
Patch that does the conversion but has bad layout (50.56 KB, patch)
2006-03-22 09:25 EST, Dani Megert CLA
no flags Details | Diff
patch that includes Dani's conversion + required field emphasis (53.38 KB, patch)
2006-03-23 14:47 EST, Susan McCourt CLA
no flags Details | Diff
patch with regex content assist and required field emphasis (53.85 KB, patch)
2006-03-23 18:02 EST, Susan McCourt CLA
no flags Details | Diff
patch with regex content assist and alignment of lower field (50.96 KB, patch)
2006-03-30 17:07 EST, Susan McCourt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2006-03-22 09:18:57 EST
I20060321-1210

The attached patch converts the Text search page and the Replace dialog to the new field assist story.

I did not yet release it because it reveals layout problems as already raised in bug . While this is easy to fix for the Replace dialog (AFAIK there's API to get the size of the cue) it will be hard for the Text Search page: because the find field of the other contributed pages are no longer at the same location and because we can't force all search page contributors to change their layout, the Search dialog becomes noisy when switching between pages.

Adding Susan to comment about to resolve this issue.
Comment 1 Dani Megert CLA 2006-03-22 09:22:08 EST
>raised in bug .
That should have been "raised in bug 124873."

>Adding Susan to comment about to resolve this issue.
Should read: "Adding Susan to comment about how to resolve this issue.
Comment 2 Dani Megert CLA 2006-03-22 09:25:07 EST
Created attachment 36740 [details]
Patch that does the conversion but has bad layout
Comment 3 Susan McCourt CLA 2006-03-22 16:45:11 EST
See also bug #131002 which discusses adding the required field indicators to the search dialog.  The required field indicators also affect the alignment of the fields across search pages, so I feel that over time contributors will have room for decorations on their pages.

For example, putting the required field indicator on the file name pattern field of the file search dialog will once again align those fields.  I think there may be some layout noise between pages while all these issues are sorted out, but I find that in the case of search pages, the layouts (particularly the find field widths) move around enough that as long as each page is nicely aligned within itself, it's not a huge issue.
Comment 4 Susan McCourt CLA 2006-03-23 14:47:06 EST
Created attachment 36836 [details]
patch that includes Dani's conversion + required field emphasis

"Fixes" layout problem by also adding required field emphasis.
Comment 5 Susan McCourt CLA 2006-03-23 18:02:08 EST
Created attachment 36855 [details]
patch with regex content assist and required field emphasis

altered layout of dialog based on discussion with Kim Peter.
The first patch indented the check box to line it up with the decorated fields.  This had the effect of making it look like it belonged to the text above it.  Instead, we added vertical space above checkbox and purposely did not align checkbox with the text fields so it would not appear to be indented.
Comment 6 Susan McCourt CLA 2006-03-30 17:07:15 EST
Created attachment 37362 [details]
patch with regex content assist and alignment of lower field

this patch aligns the two text boxes within the file search page (no required field emphasis)
Comment 7 Markus Keller CLA 2007-06-22 06:08:22 EDT
Should copy over the latest regex support from the Find/Replace dialog when bug 80667 and bug 44422 are reviewed/released.
Comment 8 Dani Megert CLA 2008-03-18 12:39:30 EDT
>Should copy over the latest regex support from the Find/Replace dialog when bug
>80667 and bug 44422 are reviewed/released.
There's now a public FindReplaceDocumentAdapterContentProposalProvider. I've simplified the RegExContentAssistProcessor to use that one. If Search/Martin decides to switch to the JFace field assist support this can be simply removed and the FindReplaceDocumentAdapterContentProposalProvider be used to get the content proposals.
Comment 9 Martin Aeschlimann CLA 2008-04-25 06:57:20 EDT
fixed > 20080425.