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