/**
* Copyright (c) 2007-2010, G. Weirich and Elexis
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* G. Weirich - initial API and implementation
* All the rest is done generically. See plug-in elexis-importer.
*
*/
package ch.elexis.laborimport.labtop;
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;
import ch.elexis.core.data.activator.CoreHub;
import ch.elexis.core.ui.preferences.SettingsPreferenceStore;
public class PreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
public static final String JAR_PATH = "labtop/jar_path"; //$NON-NLS-1$
public static final String INI_PATH = "labtop/ini_path"; //$NON-NLS-1$
public static final String DL_DIR = "labtop/downloaddir"; //$NON-NLS-1$
public PreferencePage(){
super(GRID);
setPreferenceStore(new SettingsPreferenceStore(CoreHub.localCfg));
}
@Override
protected void createFieldEditors(){
addField(new FileFieldEditor(JAR_PATH, Messages.PreferencePage_JMedTrasferJar,
getFieldEditorParent()));
addField(new FileFieldEditor(INI_PATH, Messages.PreferencePage_JMedTrasferJni,
getFieldEditorParent()));
addField(new DirectoryFieldEditor(DL_DIR, Messages.PreferencePage_DownloadDir,
getFieldEditorParent()));
}
public void init(final IWorkbench workbench){
// TODO Auto-generated method stub
}
}