PreferenceFontPage.java
Go to the documentation of this file.
00001 package com.generalrobotix.ui.grxui;
00002 
00003 
00004 import org.eclipse.jface.preference.FieldEditorPreferencePage;
00005 import org.eclipse.jface.preference.FontFieldEditor;
00006 import org.eclipse.swt.widgets.Composite;
00007 import org.eclipse.ui.IWorkbench;
00008 import org.eclipse.ui.IWorkbenchPreferencePage;
00009 
00010 import com.generalrobotix.ui.util.MessageBundle;
00011 
00012 public class PreferenceFontPage
00013         extends FieldEditorPreferencePage
00014         implements IWorkbenchPreferencePage {
00015 
00016     public PreferenceFontPage() {
00017         super(GRID);
00018         setPreferenceStore(Activator.getDefault().getPreferenceStore());
00019     }
00020 
00021     public void createFieldEditors() {
00022         Composite comp = getFieldEditorParent();
00023 
00024         addField(new FontFieldEditor(PreferenceConstants.FONT_TABLE, MessageBundle.get("GrxuiPreferencePage.tableFont.title"), "Preview", comp));
00025         addField(new FontFieldEditor(PreferenceConstants.FONT_EDITER, MessageBundle.get("GrxuiPreferencePage.editerFont.title"), "Preview", comp));
00026     }
00027     
00028     public void init(IWorkbench workbench) {
00029     }
00030 
00031 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:56