lmandel | c572f07 | 2006-04-18 22:47:31 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
vbaciu | 7f1a53d | 2009-03-02 03:33:23 +0000 | [diff] [blame] | 2 | * Copyright (c) 2006, 2009 IBM Corporation and others. |
lmandel | c572f07 | 2006-04-18 22:47:31 +0000 | [diff] [blame] | 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 | *******************************************************************************/ |
| 11 | package org.eclipse.wst.xsd.core.internal.preferences; |
| 12 | |
| 13 | import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; |
| 14 | import org.eclipse.core.runtime.preferences.DefaultScope; |
| 15 | import org.eclipse.core.runtime.preferences.IEclipsePreferences; |
| 16 | import org.eclipse.wst.xsd.core.internal.XSDCorePlugin; |
| 17 | |
| 18 | /** |
| 19 | * Sets default values for XSD Core preferences |
| 20 | */ |
| 21 | public 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 | |
nitind | b3b496f | 2007-11-01 05:40:30 +0000 | [diff] [blame] | 31 | // 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 | |
lmandel | c572f07 | 2006-04-18 22:47:31 +0000 | [diff] [blame] | 35 | } |
| 36 | } |