blob: 02160a11db1ea842ca5636b844f3a8029b2ab808 [file] [log] [blame]
/*
-----------------------------------------------------------------------
-- CHESS monitoring plugin --
-- --
-- Copyright (C) 2020 --
-- Intecs - Italy --
-- -- --
-- --
-- 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-v20.html --
-----------------------------------------------------------------------
*/
package org.polarsys.chess.monitoring.preferences;
import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.polarsys.chess.monitoring.monitoringxml.Activator;
/**
* The Class MonitoringPreferencePage.
*/
public class MonitoringPreferencePage
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage {
/**
* Instantiates a new monitoring preference page.
*/
public MonitoringPreferencePage() {
super(GRID);
setPreferenceStore(Activator.getDefault().getPreferenceStore());
//setDescription("n");
}
/**
* Creates the field editors. Field editors are abstractions of
* the common GUI blocks needed to manipulate various types
* of preferences. Each field editor knows how to save and
* restore itself.
*/
public void createFieldEditors() {
addField(
new IntegerFieldEditor(PreferenceConstants.COUNTER_SCALE_FACTOR_INT, "Counter scale factor", getFieldEditorParent()));
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
public void init(IWorkbench workbench) {
}
}