2015-10-22 00:25:12 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2015 MINRES Technologies GmbH and others.
|
|
|
|
* 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:
|
|
|
|
* MINRES Technologies GmbH - initial API and implementation
|
|
|
|
*******************************************************************************/
|
2015-11-12 23:35:13 +01:00
|
|
|
package com.minres.scviewer.e4.application.preferences;
|
|
|
|
|
|
|
|
import org.eclipse.jface.preference.BooleanFieldEditor;
|
|
|
|
import org.eclipse.jface.preference.FieldEditorPreferencePage;
|
|
|
|
|
|
|
|
/** A sample preference page to show how it works */
|
|
|
|
public class SCViewerPreferencesPage extends FieldEditorPreferencePage {
|
|
|
|
|
|
|
|
public SCViewerPreferencesPage() {
|
|
|
|
super(GRID);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void createFieldEditors() {
|
2015-10-22 00:05:29 +02:00
|
|
|
|
2015-11-12 23:35:13 +01:00
|
|
|
addField(new BooleanFieldEditor(PreferenceConstants.DATABASE_RELOAD, "Check for changed database",
|
|
|
|
getFieldEditorParent()));
|
2015-10-22 00:05:29 +02:00
|
|
|
|
2015-11-12 23:35:13 +01:00
|
|
|
}
|
2015-10-22 00:05:29 +02:00
|
|
|
|
|
|
|
}
|