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

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

Introduction

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

Prototype

public void setPreferenceStore(IPreferenceStore store) 

Source Link

Document

Sets the preference store used by this field editor.

Usage

From source file:com.vectrace.MercurialEclipse.ui.SWTWidgetHelper.java

License:Open Source License

/**
 * @param prefHistoryMergeChangesetFont//from   w  ww  . j a v a  2 s.  c  o  m
 * @param string
 * @param g
 * @param historyPreferencePage
 * @param preferenceStore
 * @return
 */
public static FieldEditor createFontFieldEditor(String pref, String label, Composite parent, DialogPage page,
        IPreferenceStore preferenceStore) {
    FontFieldEditor editor = new FontFieldEditor(pref, label, parent);
    editor.setPage(page);
    editor.setPreferenceStore(preferenceStore);
    return editor;
}