sysperfana/memspyext/com.nokia.s60tools.memspy/src/com/nokia/s60tools/memspy/preferences/MemSpyPreferenceInitializer.java
changeset 7 8e12a575a9b5
equal deleted inserted replaced
6:f65f740e69f9 7:8e12a575a9b5
       
     1 /*
       
     2 * Copyright (c) 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 package com.nokia.s60tools.memspy.preferences;
       
    20 
       
    21 
       
    22 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
       
    23 
       
    24 import com.nokia.s60tools.memspy.model.SWMTCategoryConstants;
       
    25 import com.nokia.s60tools.memspy.plugin.MemSpyPlugin;
       
    26 
       
    27 /**
       
    28  * Class used to initialize default preference values.
       
    29  */
       
    30 public class MemSpyPreferenceInitializer extends AbstractPreferenceInitializer {
       
    31 
       
    32 	/*
       
    33 	 * (non-Javadoc)
       
    34 	 * 
       
    35 	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
       
    36 	 */
       
    37 	public void initializeDefaultPreferences() {
       
    38 		
       
    39 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTINGS_CUSTOM, SWMTCategoryConstants.PROFILE_BASIC);
       
    40 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTING, SWMTCategoryConstants.PROFILE_BASIC);
       
    41 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTING_PROFILE_SELECTED, true);
       
    42 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.SWMT_HEAPFILTER_SETTING, "");		
       
    43 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.SWMT_HEAP_DUMP_SELECTED, false);
       
    44 		MemSpyPlugin.getPrefsStore().setDefault(MemSpyPreferenceConstants.CLOSE_BETWEEN_CYCLES, true);
       
    45 		
       
    46 	}
       
    47 }
       
    48