/*******************************************************************************
* Copyright (c) 2009, 2010 Innovation Gate GmbH.
* 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:
* Innovation Gate GmbH - initial API and implementation
******************************************************************************/
package de.innovationgate.eclipse.editors.preferences;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import de.innovationgate.eclipse.editors.Plugin;
import de.innovationgate.eclipse.editors.Preferences;
public class TMLEditorPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
public TMLEditorPreferences() {
setDescription("This page allows the configuration of the TML Editor.");
IPreferenceStore store = Plugin.getDefault().getPreferenceStore();
setPreferenceStore(store);
}
@Override
protected void createFieldEditors() {
addField(new BooleanFieldEditor(Preferences.DISPLAY_TMLEDITOR_TOOLBAR, "Display editors toolbar", getFieldEditorParent()));
}
public void init(IWorkbench workbench) {
}
}