/* uDig - User Friendly Desktop Internet GIS client
* http://udig.refractions.net
* (C) 2011, Refractions Research Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html), and the Refractions BSD
* License v1.0 (http://udig.refractions.net/files/bsd3-v10.html).
*/
package org.locationtech.udig.tools.internal;
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;
/**
* Preference page to set mouse preferences.
*
* @author Jody Garnett (LISAsoft)
*/
public class NavigationToolPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
public static final String SCALE = "scale"; //$NON-NLS-1$
public static final String TILED = "titled"; //$NON-NLS-1$
private BooleanFieldEditor scale;
private BooleanFieldEditor tiled;
public NavigationToolPreferencePage() {
super(GRID);
IPreferenceStore store = ToolsPlugin.getDefault().getPreferenceStore();
setPreferenceStore(store);
setTitle(Messages.Navigation_Title);
setDescription(Messages.Navigation_Description);
}
protected void createFieldEditors() {
scale = new BooleanFieldEditor(SCALE, Messages.Navigation_Scale, getFieldEditorParent());
addField(scale);
tiled = new BooleanFieldEditor(TILED, Messages.Navigation_Tiled, getFieldEditorParent());
addField(tiled);
}
public void init( IWorkbench workbench ) {
}
}