$search
00001 package org.best_of_robotics.bride.ui.orocos.preference; 00002 00003 import org.best_of_robotics.bride.ui.orocos.Activator; 00004 import org.eclipse.jface.preference.FieldEditorPreferencePage; 00005 import org.eclipse.jface.preference.RadioGroupFieldEditor; 00006 import org.eclipse.ui.IWorkbench; 00007 import org.eclipse.ui.IWorkbenchPreferencePage; 00008 00009 public class OrocosPreferencePage extends FieldEditorPreferencePage implements 00010 IWorkbenchPreferencePage { 00011 00012 public OrocosPreferencePage() { 00013 super(GRID); 00014 } 00015 00016 @Override 00017 public void init(IWorkbench workbench) { 00018 setPreferenceStore(Activator.getDefault().getPreferenceStore()); 00019 } 00020 00021 @Override 00022 protected void createFieldEditors() { 00023 addField(new RadioGroupFieldEditor("DatatypeGenerator", 00024 "Datatype Generator:", 1, new String[][] { 00025 { "Generated Typekit", "typekit" }, 00026 { "TypeGen", "typegen" } }, getFieldEditorParent())); 00027 } 00028 00029 }