1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 10:05:24 +02:00

[cleanup] added comment about using height hints in dialogs - accessibility impact

This commit is contained in:
David Dykstal 2006-10-17 16:32:01 +00:00
parent a35ee51bd0
commit 384f1177a9

View file

@ -155,28 +155,26 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
Composite composite_prompts = SystemWidgetHelpers.createComposite(composite, 2); Composite composite_prompts = SystemWidgetHelpers.createComposite(composite, 2);
// yantzi: artemis 6.0, at request of zOS team I am changing the system type and hostname // yantzi: artemis 6.0, at request of zOS team I am changing the system type and hostname
// to labels so they are clearer to read than non-editable entry fields // to labels so they are clearer to read than non-editable entry fields
// dwd: cannot set height hints on labels since that causes cut off text for large fonts used by those with impaired vision
// System type // System type
String text = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_SYSTEMTYPE_READONLY_LABEL); String text = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_SYSTEMTYPE_READONLY_LABEL);
Label label = SystemWidgetHelpers.createLabel(composite_prompts, text); Label label = SystemWidgetHelpers.createLabel(composite_prompts, text);
GridData gd = new GridData(); GridData gd = new GridData();
// gd.heightHint = LABEL_HEIGHT;
label.setLayoutData(gd); label.setLayoutData(gd);
label = SystemWidgetHelpers.createLabel(composite_prompts, connectorService.getHostType()); label = SystemWidgetHelpers.createLabel(composite_prompts, connectorService.getHostType());
gd = new GridData(); gd = new GridData();
// gd.heightHint = LABEL_HEIGHT;
label.setLayoutData(gd); label.setLayoutData(gd);
// Host name // Host name
text = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_HOSTNAME_READONLY_LABEL); text = SystemWidgetHelpers.appendColon(SystemResources.RESID_CONNECTION_HOSTNAME_READONLY_LABEL);
label = SystemWidgetHelpers.createLabel(composite_prompts, text); label = SystemWidgetHelpers.createLabel(composite_prompts, text);
gd = new GridData(); gd = new GridData();
// gd.heightHint = LABEL_HEIGHT;
label.setLayoutData(gd); label.setLayoutData(gd);
label = SystemWidgetHelpers.createLabel(composite_prompts, connectorService.getHostName()); label = SystemWidgetHelpers.createLabel(composite_prompts, connectorService.getHostName());
gd = new GridData(); gd = new GridData();
// gd.heightHint = LABEL_HEIGHT;
label.setLayoutData(gd); label.setLayoutData(gd);
// UserId // UserId