private void createFontSettings(Composite composite) { Composite panel = new Composite(composite, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; layout.numColumns = 4; panel.setLayout(layout); GridData data = new GridData(); data.horizontalSpan = 2; data.grabExcessHorizontalSpace = true; data.horizontalAlignment = SWT.CENTER; panel.setLayoutData(data); fontTypeEditor = new FontFieldEditor(ILogViewerConstants.PREF_EDITOR_FONT_STYLE,LogViewerPlugin.getResourceString("preferences.contenteditor.font.style.text"),panel); //$NON-NLS-1$ fontTypeEditor.setChangeButtonText(LogViewerPlugin.getResourceString("preferences.contenteditor.fontl.style.button.text")); //$NON-NLS-1$ fontTypeEditor.setPreferenceStore(doGetPreferenceStore()); fontTypeEditor.fillIntoGrid(panel, 3); fontTypeEditor.setPage(this); fontTypeEditor.load(); }