1
/*******************************************************************************
2
* Copyright (c) 2006 IBM Corporation.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse
10
*******************************************************************************/
12
package org.eclipse.linuxtools.internal.systemtap.ui.graphing.preferences;
14
import org.eclipse.jface.preference.FieldEditorPreferencePage;
15
import org.eclipse.jface.preference.IntegerFieldEditor;
16
import org.eclipse.linuxtools.internal.systemtap.ui.graphing.GraphingPlugin;
17
import org.eclipse.linuxtools.internal.systemtap.ui.graphing.Localization;
18
import org.eclipse.linuxtools.systemtap.ui.logging.LogManager;
19
import org.eclipse.ui.IWorkbench;
20
import org.eclipse.ui.IWorkbenchPreferencePage;
24
public class GraphingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
25
public GraphingPreferencePage() {
27
LogManager.logDebug("Start GraphingPreferencePage:", this);
28
setPreferenceStore(GraphingPlugin.getDefault().getPreferenceStore());
29
setDescription(Localization.getString("GraphingPreferencePage.GraphDisplayPreferences"));
30
LogManager.logDebug("End GraphingPreferencePage:", this);
33
public void createFieldEditors() {
34
LogManager.logDebug("Start createFieldEditors:", this);
37
new IntegerFieldEditor(
38
GraphingPreferenceConstants.P_GRAPH_UPDATE_DELAY,
39
Localization.getString("GraphingPreferencePage.RefreshDelay"),
40
getFieldEditorParent()));
42
LogManager.logDebug("End createFieldEditors:", this);
45
public void init(IWorkbench workbench) {
46
LogManager.logDebug("Start init:", this);
47
LogManager.logInfo("Initializing", this);
48
LogManager.logDebug("End init:", this);
51
public void dispose() {
52
LogManager.logDebug("Start dispose:", this);
53
LogManager.logInfo("Disposing", this);
55
LogManager.logDebug("End dispose:", this);