blob: 9c513b02036667ca5ec821d6ae2b68e17209c6a8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 vogella GmbH.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Simon Scholz <simon.scholz@vogella.com> - initial API and implementation
*******************************************************************************/
package org.eclipse.pde.spy.preferences.preferencepage;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.pde.spy.preferences.PreferenceSpyConfiguration;
import org.eclipse.pde.spy.preferences.constants.PreferenceConstants;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
public class TracePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
public TracePreferencePage() {
super(GRID);
setPreferenceStore(PreferenceSpyConfiguration.getPreferenceStore());
setDescription("Settings for the preference spy");
}
/**
* Creates the field editors
*/
@Override
public void createFieldEditors() {
addField(new BooleanFieldEditor(PreferenceConstants.TRACE_PREFERENCES, "&Trace preference values ",
getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceConstants.HIERARCHICAL_LAYOUT, "&Use hierarchical layout in the tree",
getFieldEditorParent()));
}
@Override
public void init(IWorkbench workbench) {
}
}