lmandel | c572f07 | 2006-04-18 22:47:31 +0000 | [diff] [blame^] | 1 | /******************************************************************************* |
| 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 | *******************************************************************************/ |
| 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 | |
| 31 | // Validation preferences. |
| 32 | node.putBoolean(XSDCorePreferenceNames.HONOUR_ALL_SCHEMA_LOCATIONS, false); |
| 33 | } |
| 34 | } |