~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/internal/systemtap/ui/graphing/preferences/GraphingPreferencePage.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 *     IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse
 
10
 *******************************************************************************/
 
11
 
 
12
package org.eclipse.linuxtools.internal.systemtap.ui.graphing.preferences;
 
13
 
 
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;
 
21
 
 
22
 
 
23
 
 
24
public class GraphingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
 
25
        public GraphingPreferencePage() {
 
26
                super(GRID);
 
27
                LogManager.logDebug("Start GraphingPreferencePage:", this);
 
28
                setPreferenceStore(GraphingPlugin.getDefault().getPreferenceStore());
 
29
                setDescription(Localization.getString("GraphingPreferencePage.GraphDisplayPreferences"));
 
30
                LogManager.logDebug("End GraphingPreferencePage:", this);
 
31
        }
 
32
        
 
33
        public void createFieldEditors() {
 
34
                LogManager.logDebug("Start createFieldEditors:", this);
 
35
 
 
36
                addField(
 
37
                                new IntegerFieldEditor(
 
38
                                GraphingPreferenceConstants.P_GRAPH_UPDATE_DELAY,
 
39
                                Localization.getString("GraphingPreferencePage.RefreshDelay"),
 
40
                                getFieldEditorParent()));
 
41
                
 
42
                LogManager.logDebug("End createFieldEditors:", this);
 
43
        }
 
44
 
 
45
        public void init(IWorkbench workbench) {
 
46
                LogManager.logDebug("Start init:", this);
 
47
                LogManager.logInfo("Initializing", this);
 
48
                LogManager.logDebug("End init:", this);
 
49
        }
 
50
        
 
51
        public void dispose() {
 
52
                LogManager.logDebug("Start dispose:", this);
 
53
                LogManager.logInfo("Disposing", this);
 
54
                super.dispose();
 
55
                LogManager.logDebug("End dispose:", this);
 
56
        }
 
57
}