blob: f81f24d3d0dab5f83da387e75731b740654b7918 [file] [log] [blame]
lmandelc572f072006-04-18 22:47:31 +00001/*******************************************************************************
vbaciu7f1a53d2009-03-02 03:33:23 +00002 * Copyright (c) 2006, 2009 IBM Corporation and others.
lmandelc572f072006-04-18 22:47:31 +00003 * 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
nitindb3b496f2007-11-01 05:40:30 +000031 // In order to provide the best compatibility and conformance to the XML Schema
32 // specification it is recommended that this be defaulted to true.
33 node.putBoolean(XSDCorePreferenceNames.FULL_SCHEMA_CONFORMANCE, true);
34
lmandelc572f072006-04-18 22:47:31 +000035 }
36}