Package de.loskutov.bco.preferences

Source Code of de.loskutov.bco.preferences.BCOPreferenceInitializer

/*******************************************************************************
* Copyright (c) 2006 Andrei Loskutov.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http://www.opensource.org/licenses/bsd-license.php
* Contributor:  Andrei Loskutov - initial API and implementation
*******************************************************************************/
package de.loskutov.bco.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.loskutov.bco.BytecodeOutlinePlugin;

/**
* Inializer of default values for BCO preferences
* @author Andrei
*/
public class BCOPreferenceInitializer extends AbstractPreferenceInitializer {

    /* (non-Javadoc)
     * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
     */
    public void initializeDefaultPreferences() {
        IPreferenceStore store = BytecodeOutlinePlugin.getDefault().getPreferenceStore();
        store.setDefault(BCOConstants.LINK_VIEW_TO_EDITOR, true);
        store.setDefault(BCOConstants.LINK_REF_VIEW_TO_EDITOR, true);

        store.setDefault(BCOConstants.SHOW_ONLY_SELECTED_ELEMENT, true);

        store.setDefault(BCOConstants.SHOW_RAW_BYTECODE, false);

        store.setDefault(BCOConstants.SHOW_ASMIFIER_CODE, false);
        store.setDefault(BCOConstants.DIFF_SHOW_ASMIFIER_CODE, false);

        store.setDefault(BCOConstants.SHOW_ANALYZER, false);

        store.setDefault(BCOConstants.SHOW_VARIABLES, true);
        store.setDefault(BCOConstants.DIFF_SHOW_VARIABLES, true);

        store.setDefault(BCOConstants.SHOW_LINE_INFO, true);
        store.setDefault(BCOConstants.DIFF_SHOW_LINE_INFO, true);

        store.setDefault(BCOConstants.SHOW_STACKMAP, true);
        store.setDefault(BCOConstants.DIFF_SHOW_STACKMAP, true);

        store.setDefault(BCOConstants.EXPAND_STACKMAP, false);
        store.setDefault(BCOConstants.DIFF_EXPAND_STACKMAP, false);

        store.setDefault(BCOConstants.RECALCULATE_STACKMAP, false);
        store.setDefault(BCOConstants.SHOW_HEX_VALUES, false);
    }

}
TOP

Related Classes of de.loskutov.bco.preferences.BCOPreferenceInitializer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.