Skip to content

Commit

Permalink
(wip) fix CoveragePreferencePage for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Jan 26, 2017
1 parent c73fa99 commit fa43847
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected Control createContents(final Composite parent) {

final Composite result = new Composite(parent, SWT.NONE);
GridLayoutFactory.swtDefaults().margins(0, 0).applyTo(result);
Dialog.applyDialogFont(result);

createSessionManagementGroup(result);
createDefaultScopeGroup(result);
Expand All @@ -64,7 +65,6 @@ protected Control createContents(final Composite parent) {
createLink(result, UIMessages.CoveragePreferencesAnnotationsLink_label,
ANNOTATIONS_PAGE);

Dialog.applyDialogFont(result);
initialize();
checkState();
return result;
Expand Down Expand Up @@ -130,6 +130,7 @@ private void createCoverageRuntimeGroup(final Composite parent) {
addField(editor);
editor.fillIntoGrid(group, 2);
Label hint = new Label(group, SWT.WRAP);
hint.setFont(group.getFont());
GridDataFactory.fillDefaults().span(2, 1).applyTo(hint);
hint.setText(UIMessages.CoveragePreferencesCoverageRuntime_message);
adjustGroupLayout(group);
Expand All @@ -155,6 +156,7 @@ private void createLink(final Composite parent, final String text,
String target) {
final PreferenceLinkArea link = new PreferenceLinkArea(parent, SWT.NONE,
target, text, (IWorkbenchPreferenceContainer) getContainer(), null);
link.getControl().setFont(parent.getFont());
link.getControl().setLayoutData(new GridData());
}

Expand Down

0 comments on commit fa43847

Please sign in to comment.