Skip to main content
summaryrefslogblamecommitdiffstats
blob: 6f257e8eb9386b7065dcd59b95eb10d00d2b9d37 (plain) (tree)































                                                                                                     
/*******************************************************************************
 * Copyright (c) 2006, 2012 Oracle. All rights reserved.
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0, which accompanies this distribution
 * and is available at http://www.eclipse.org/legal/epl-v10.html.
 * 
 * Contributors:
 *     Oracle - initial API and implementation
 ******************************************************************************/
package org.eclipse.jpt.jaxb.core.internal;

import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jpt.jaxb.core.internal.plugin.JptJaxbCorePlugin;

/**
 * Class used to initialize default (non-persistent) preference values.
 * <p>
 * See <code>org.eclipse.jpt.jaxb.core/plugin.xml:org.eclipse.core.runtime.preferences</code>.
 */
public class JaxbPreferenceInitializer
	extends AbstractPreferenceInitializer 
{
	@Override
	public void initializeDefaultPreferences() {
		this.getJaxbWorkspace().initializeDefaultPreferences();
	}

	private InternalJaxbWorkspace getJaxbWorkspace() {
		return JptJaxbCorePlugin.instance().getJaxbWorkspace(ResourcesPlugin.getWorkspace());
	}
}

Back to the top