/*******************************************************************************
 * Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the LGPL 3.0
 * which accompanies this distribution, and is available at
 * https://www.gnu.org/licenses/lgpl-3.0-standalone.html
 *
 * Contributors:
 *     Faiez Zalila - initial API and implementation and/or initial documentation
 *******************************************************************************/
package fr.laas.libtts;

import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

public class FiacreSimulatorPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage{

	@Override
	protected void createFieldEditors() {
		// TODO Auto-generated method stub
		addField(new DirectoryFieldEditor("frac_dir", "Frac directory", getFieldEditorParent()));
		addField(new FileFieldEditor("server_bin", "TTS simulator", getFieldEditorParent()));	
	}

	@Override
	public void init(IWorkbench workbench) {
		// TODO Auto-generated method stub
		setPreferenceStore(Activator.getDefault().getPreferenceStore());
	}

}
