Example usage for org.eclipse.jface.preference FontFieldEditor getPreviewControl

List of usage examples for org.eclipse.jface.preference FontFieldEditor getPreviewControl

Introduction

In this page you can find the example usage for org.eclipse.jface.preference FontFieldEditor getPreviewControl.

Prototype

public Control getPreviewControl() 

Source Link

Document

Returns the preview control for this field editor.

Usage

From source file:com.astra.ses.spell.gui.preferences.ui.pages.FontsPreferencePage.java

License:Open Source License

@Override
public void performApply() {
    for (FontKey key : FontKey.values()) {
        FontFieldEditor selector = m_colorSelectors[key.ordinal()];
        Font font = selector.getPreviewControl().getFont();
        m_conf.setFont(key, font);//w w  w.  j av a2 s  .com
    }
}