blob: 475e3a12e20bd6f727d39a2c3b952272b41fd8d9 [file] [log] [blame]
lmandelc572f072006-04-18 22:47:31 +00001/*******************************************************************************
2 * Copyright (c) 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.wst.xsd.core.internal.preferences;
12
13import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
14import org.eclipse.core.runtime.preferences.DefaultScope;
15import org.eclipse.core.runtime.preferences.IEclipsePreferences;
16import org.eclipse.wst.xsd.core.internal.XSDCorePlugin;
17
18/**
19 * Sets default values for XSD Core preferences
20 */
21public class XSDCorePreferenceInitializer extends AbstractPreferenceInitializer {
22
23 /*
24 * (non-Javadoc)
25 *
26 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
27 */
28 public void initializeDefaultPreferences() {
29 IEclipsePreferences node = new DefaultScope().getNode(XSDCorePlugin.getDefault().getBundle().getSymbolicName());
30
31 // Validation preferences.
32 node.putBoolean(XSDCorePreferenceNames.HONOUR_ALL_SCHEMA_LOCATIONS, false);
33 }
34}