PreferenceFontPage.java
Go to the documentation of this file.
1 package com.generalrobotix.ui.grxui;
2 
3 
4 import org.eclipse.jface.preference.FieldEditorPreferencePage;
5 import org.eclipse.jface.preference.FontFieldEditor;
6 import org.eclipse.swt.widgets.Composite;
7 import org.eclipse.ui.IWorkbench;
8 import org.eclipse.ui.IWorkbenchPreferencePage;
9 
11 
12 public class PreferenceFontPage
13  extends FieldEditorPreferencePage
14  implements IWorkbenchPreferencePage {
15 
16  public PreferenceFontPage() {
17  super(GRID);
18  setPreferenceStore(Activator.getDefault().getPreferenceStore());
19  }
20 
21  public void createFieldEditors() {
22  Composite comp = getFieldEditorParent();
23 
24  addField(new FontFieldEditor(PreferenceConstants.FONT_TABLE, MessageBundle.get("GrxuiPreferencePage.tableFont.title"), "Preview", comp));
25  addField(new FontFieldEditor(PreferenceConstants.FONT_EDITER, MessageBundle.get("GrxuiPreferencePage.editerFont.title"), "Preview", comp));
26  }
27 
28  public void init(IWorkbench workbench) {
29  }
30 
31 }
static final String get(String key)
org


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:05