Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 249924 - [Help] 'Content' preference page uses a TabFolder when there is only one item
Summary: [Help] 'Content' preference page uses a TabFolder when there is only one item
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Chris Austin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 05:38 EDT by Remy Suen CLA
Modified: 2008-12-08 16:12 EST (History)
2 users (show)

See Also:


Attachments
Patch without the tab (4.17 KB, patch)
2008-12-08 10:17 EST, Chris Austin CLA
no flags Details | Diff
Screenshot showing table heading with light background (4.94 KB, image/x-png)
2008-12-08 13:08 EST, Chris Goldthorpe CLA
no flags Details
Patch without the tab (4.15 KB, patch)
2008-12-08 14:14 EST, Chris Austin CLA
cgold: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2008-10-07 05:38:12 EDT
Is there a particular reason as to why a folder is used when there's only one item? Looking at the HelpContentPreferencePage class, I don't think I see anything that hints at the fact that the folder will have more than one item.
Comment 1 Chris Goldthorpe CLA 2008-10-08 15:52:40 EDT
Agreed, the tab is unnecessary, targeting 3.5.
Comment 2 Chris Austin CLA 2008-12-08 10:17:10 EST
Created attachment 119798 [details]
Patch without the tab

Removed the tab from the contents pane.
Comment 3 Chris Goldthorpe CLA 2008-12-08 13:07:06 EST
This looks better. I have a couple more suggested changes to make, then I can apply the patch.

On WinXP when the table is not enabled the titles Name, URL and Enabled have a light background and stand out, see screenshot. It feels as though they should have the same background as the rest of the table.

When building the label there is a catenation with a space:

descLabel.setText(" "+Messages.HelpContentPage_title); //$NON-NLS-1$

In general it is not a good idea to use catenation for any string that uses resources - the string could be in left to right language. I would suggect leaving this extra space out, the dialog seems to align fine without it.
Comment 4 Chris Goldthorpe CLA 2008-12-08 13:08:57 EST
Created attachment 119822 [details]
Screenshot showing table heading with light background
Comment 5 Chris Austin CLA 2008-12-08 14:14:18 EST
Created attachment 119828 [details]
Patch without the tab

Thanks for the comments.  I removed the leading space.  Unfortunately I do not see the highlighted table in my environment, so I don't have a fix for that.
Comment 6 Chris Goldthorpe CLA 2008-12-08 16:12:28 EST
Patch committed.