Summary: | Search Dialog - consider using the new required field indicators | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Susan McCourt <susan> |
Component: | Search | Assignee: | Platform-Search-Inbox <platform-search-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, markus.kell.r, martinae |
Version: | 3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Susan McCourt
2006-03-08 18:54:56 EST
Susan, can you point me to the example code? The example is in org.eclipse.ui.examples.fieldassist. To run the example, choose FieldAssist>Open Example Dialog. There is a preference page that lets you control what kinds of emphasis is shown, but by default it uses the color and decoration specified by Kim in bug #120238. The code is in the class ExampleDialog. For required field emphasis, the methods of importance are handleFocusLost(SmartField) and handleModify(SmartField.) The intention is to some day have code in JFace that would allow you to specify a field is required and everything would happen for you. But for now, it's up to the individual dialog and you can factor the code however you wish. Martin, per bug #120238, I'm going to add required field emphasis to the switch workspace dialog and elsewhere. I will ping here when there is something more specific for you to look at. See the patch in bug #132833 which adds required field emphasis to the text search page as well as the regex content assist cue. These fixes are included together as both involve adding decorated fields and with only one fix, code to fix the alignment has to be added. If you prefer to only consider required field emphasis and not the content assist cue support, then I can provide a different patch here. Let me know. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |