sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/preferences/PreferenceInitializer.java
changeset 1 1050670c6980
child 6 f65f740e69f9
equal deleted inserted replaced
0:5ad7ad99af01 1:1050670c6980
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Definitions for the class PreferenceInitializer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 package com.nokia.s60tools.analyzetool.preferences;
       
    21 
       
    22 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
       
    23 import org.eclipse.jface.preference.IPreferenceStore;
       
    24 
       
    25 import com.nokia.s60tools.analyzetool.Activator;
       
    26 import com.nokia.s60tools.analyzetool.global.Constants;
       
    27 
       
    28 /**
       
    29  * Class to initialize default preference values.
       
    30  */
       
    31 public class PreferenceInitializer extends AbstractPreferenceInitializer {
       
    32 
       
    33 	/*
       
    34 	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
       
    35 	 */
       
    36 	@Override
       
    37 	public void initializeDefaultPreferences() {
       
    38 
       
    39 		IPreferenceStore store = Activator.getPreferences();
       
    40 
       
    41 		store.setDefault(Constants.LOGGING_MODE, Constants.LOGGING_EXT);
       
    42 		store.setDefault(Constants.REPORT_LEVEL, Constants.REPORT_KNOWN);
       
    43 		store.setDefault(Constants.USE_INTERNAL, false);
       
    44 		store.setDefault(Constants.ATOOL_FOLDER, Constants.DEFAULT_ATOOL_FOLDER);
       
    45 		store.setDefault(Constants.USER_SELECTED_FOLDER, Constants.DEFAULT_ATOOL_FOLDER);
       
    46 		store.setDefault(Constants.CREATE_STATISTIC, false);
       
    47 		store.setDefault(Constants.USE_ROM_SYMBOL, false);
       
    48 		store.setDefault(Constants.CALLSTACK_SIZE, 40);
       
    49 		store.setDefault(Constants.LOGGING_FAST_ENABLED, false);
       
    50 	}
       
    51 }
       
    52