01: /*******************************************************************************
02: * Copyright (c) 2006 Andrei Loskutov.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the BSD License
05: * which accompanies this distribution, and is available at
06: * http://www.opensource.org/licenses/bsd-license.php
07: * Contributor: Andrei Loskutov - initial API and implementation
08: *******************************************************************************/package de.loskutov.bco.preferences;
09:
10: import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
11: import org.eclipse.jface.preference.IPreferenceStore;
12:
13: import de.loskutov.bco.BytecodeOutlinePlugin;
14:
15: /**
16: * Inializer of default values for BCO preferences
17: * @author Andrei
18: */
19: public class BCOPreferenceInitializer extends
20: AbstractPreferenceInitializer {
21:
22: /* (non-Javadoc)
23: * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
24: */
25: public void initializeDefaultPreferences() {
26: IPreferenceStore store = BytecodeOutlinePlugin.getDefault()
27: .getPreferenceStore();
28: store.setDefault(BCOConstants.LINK_VIEW_TO_EDITOR, true);
29: store.setDefault(BCOConstants.LINK_REF_VIEW_TO_EDITOR, true);
30:
31: store.setDefault(BCOConstants.SHOW_ONLY_SELECTED_ELEMENT, true);
32:
33: store.setDefault(BCOConstants.SHOW_RAW_BYTECODE, false);
34:
35: store.setDefault(BCOConstants.SHOW_ASMIFIER_CODE, false);
36: store.setDefault(BCOConstants.DIFF_SHOW_ASMIFIER_CODE, false);
37:
38: store.setDefault(BCOConstants.SHOW_ANALYZER, false);
39:
40: store.setDefault(BCOConstants.SHOW_VARIABLES, true);
41: store.setDefault(BCOConstants.DIFF_SHOW_VARIABLES, true);
42:
43: store.setDefault(BCOConstants.SHOW_LINE_INFO, true);
44: store.setDefault(BCOConstants.DIFF_SHOW_LINE_INFO, true);
45:
46: store.setDefault(BCOConstants.SHOW_STACKMAP, true);
47: store.setDefault(BCOConstants.DIFF_SHOW_STACKMAP, true);
48:
49: store.setDefault(BCOConstants.EXPAND_STACKMAP, false);
50: store.setDefault(BCOConstants.DIFF_EXPAND_STACKMAP, false);
51:
52: store.setDefault(BCOConstants.RECALCULATE_STACKMAP, false);
53: store.setDefault(BCOConstants.SHOW_HEX_VALUES, false);
54: }
55:
56: }
|