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

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.graphingapi.ui/src/org/eclipse/linuxtools/systemtap/ui/graphingapi/ui/preferences/PreferenceInitializer.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.systemtap.ui.graphingapi.ui.preferences;
 
13
 
 
14
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
 
15
import org.eclipse.jface.preference.IPreferenceStore;
 
16
import org.eclipse.linuxtools.internal.systemtap.ui.graphingapi.ui.GraphingAPIUIPlugin;
 
17
 
 
18
 
 
19
 
 
20
public class PreferenceInitializer extends AbstractPreferenceInitializer {
 
21
        public void initializeDefaultPreferences() {
 
22
                IPreferenceStore store = GraphingAPIUIPlugin.getDefault().getPreferenceStore();
 
23
 
 
24
                store.setDefault(GraphingAPIPreferenceConstants.P_SHOW_X_GRID_LINES, true);
 
25
                store.setDefault(GraphingAPIPreferenceConstants.P_SHOW_Y_GRID_LINES, true);
 
26
                store.setDefault(GraphingAPIPreferenceConstants.P_AUTO_RESIZE, true);
 
27
                store.setDefault(GraphingAPIPreferenceConstants.P_JUMP_NEW_TABLE_ENTRY, false);
 
28
                store.setDefault(GraphingAPIPreferenceConstants.P_VIEWABLE_DATA_ITEMS, 100);
 
29
                store.setDefault(GraphingAPIPreferenceConstants.P_MAX_DATA_ITEMS, 250);
 
30
                store.setDefault(GraphingAPIPreferenceConstants.P_X_SERIES_TICKS, 10);
 
31
                store.setDefault(GraphingAPIPreferenceConstants.P_Y_SERIES_TICKS, 4);
 
32
        }
 
33
}