But on the other side, SWT provides support for native search fields with the SWT.SEARCH and SWT.CANCEL. The workbench already uses these flags in many places, but not in the FilteredItemsSelectionDialog. So If you use the Open Resource or Open Type or any other derived dialogs, you would get something like:

Had our workbench used the sytle bits, it would look like:

Adding the SWT style bits to the text field doesn't make any difference on other OS, but it does adds a little difference in Macs. So next time you are coding for a search field, do remember to add these style bits and make your Mac users happy.
Note 1: Whenever someone reads a complaining post like this one, the first comment would be "did you raise a bug?". So before anyone comments, yes, I did raise a bug and submit a patch. Its accepted and should be available in M1 of 3.5. Yeah, you read it right. I'm blogging about Eclipse 3.5. See Ganymede is yet to hit the download servers, but its already history now :-)
Note 2: My bug was not the first resolved bug for 3.5, but certainly this blog post will be the first on 3.5 :-)
Note 3: What is the official name for 3.5 release train? I tried to make a guess, but couldn't. Anyone?
0 comments:
Post a Comment