blob: 47ac8270e521572ea5057aadf566608b495009a5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2011 Alena Laskavaia
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alena Laskavaia - initial API and implementation
* Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.codan.internal.core;
import org.eclipse.cdt.codan.core.CodanCorePlugin;
import org.eclipse.cdt.codan.core.PreferenceConstants;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
/**
* Class used to initialize default preference values.
*/
public class PreferenceInitializer extends AbstractPreferenceInitializer {
@Override
public void initializeDefaultPreferences() {
IEclipsePreferences node = DefaultScope.INSTANCE
.getNode(CodanCorePlugin.getDefault().getBundle().getSymbolicName());
node.putBoolean(PreferenceConstants.P_RUN_ON_BUILD, false);
node.putBoolean(PreferenceConstants.P_RUN_IN_EDITOR, true);
node.putBoolean(PreferenceConstants.P_USE_PARENT, true);
}
}