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

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

Introduction

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

Prototype

public void setPage(DialogPage dialogPage) 

Source Link

Document

Set the page to be the receiver.

Usage

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

License:Open Source License

/**
 * @param prefHistoryMergeChangesetFont//from   w  ww .  ja v a  2  s  . c om
 * @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;
}