KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > loskutov > bco > preferences > BCOPreferenceInitializer


1 /*******************************************************************************
2  * Copyright (c) 2006 Andrei Loskutov.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the BSD License
5  * which accompanies this distribution, and is available at
6  * http://www.opensource.org/licenses/bsd-license.php
7  * Contributor: Andrei Loskutov - initial API and implementation
8  *******************************************************************************/

9 package de.loskutov.bco.preferences;
10
11 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
12 import org.eclipse.jface.preference.IPreferenceStore;
13
14 import de.loskutov.bco.BytecodeOutlinePlugin;
15
16 /**
17  * Inializer of default values for BCO preferences
18  * @author Andrei
19  */

20 public class BCOPreferenceInitializer extends AbstractPreferenceInitializer {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
24      */

25     public void initializeDefaultPreferences() {
26         IPreferenceStore store = BytecodeOutlinePlugin.getDefault().getPreferenceStore();
27         store.setDefault(BCOConstants.LINK_VIEW_TO_EDITOR, true);
28         store.setDefault(BCOConstants.SHOW_ONLY_SELECTED_ELEMENT, true);
29
30         store.setDefault(BCOConstants.SHOW_RAW_BYTECODE, false);
31
32         store.setDefault(BCOConstants.SHOW_ASMIFIER_CODE, false);
33         store.setDefault(BCOConstants.SHOW_ANALYZER, false);
34
35         store.setDefault(BCOConstants.SHOW_VARIABLES, true);
36         store.setDefault(BCOConstants.SHOW_LINE_INFO, true);
37
38         store.setDefault(BCOConstants.SHOW_STACKMAP, true);
39         store.setDefault(BCOConstants.EXPAND_STACKMAP, false);
40         store.setDefault(BCOConstants.RECALCULATE_STACKMAP, false);
41     }
42
43 }
44
Popular Tags