/*
* $Id$
*
* Copyright (c) 2004-2005 by the TeXlapse Team.
* 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
*/
package net.sourceforge.texlipse.properties;
import net.sourceforge.texlipse.TexlipsePlugin;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
/**
* The page to set Latex temporary file extensions.
*
* @author Kimmo Karlsson
*/
public class LatexTempExtsPreferencePage
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage {
/**
* Creates an instance of the preference page.
*/
public LatexTempExtsPreferencePage() {
super(GRID);
setPreferenceStore(TexlipsePlugin.getDefault().getPreferenceStore());
setDescription(TexlipsePlugin.getResourceString("preferenceTempFileExtsPageDescription"));
}
/**
* Creates the property editing UI components of this page.
*/
protected void createFieldEditors() {
addField(new StringListFieldEditor(TexlipseProperties.TEMP_FILE_EXTS,
TexlipsePlugin.getResourceString("preferenceTempFileExtsLabel"),
getFieldEditorParent()));
addField(new StringListFieldEditor(TexlipseProperties.DERIVED_FILES,
TexlipsePlugin.getResourceString("preferenceDerivedFilesLabel"),
getFieldEditorParent()));
}
/**
* Nothing to do.
*/
public void init(IWorkbench workbench) {
}
}