package tool.preferences;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import tool.ToolPlugin;
public class ToolPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage{
public ToolPreferencePage(){
super(FieldEditorPreferencePage.GRID);
IPreferenceStore store =
ToolPlugin.getDefault().getPreferenceStore();
setPreferenceStore(store);
}
@Override
public void init(IWorkbench workBench) {
}
@Override
protected void createFieldEditors() {
DirectoryFieldEditor forteRoot = new DirectoryFieldEditor(
ToolPlugin.FORTE_ROOT_PREFERENCE,
"&Forte Root:",
getFieldEditorParent());
addField(forteRoot);
StringFieldEditor forteLogger = new StringFieldEditor (
ToolPlugin.FORTE_LOGGER_PREFERENCE,
"&Log Flags:",
getFieldEditorParent());
addField(forteLogger);
}
}