blob: 22385ea7166205a9f41508984c3b697939c23b74 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.preferences;
import java.util.Properties;
import org.eclipse.core.runtime.IPath;
import org.osgi.service.prefs.BackingStoreException;
public class TestHelper {
public static Properties convertToProperties(EclipsePreferences node, String prefix) throws BackingStoreException {
return node.convertToProperties(new Properties(), prefix);
}
public static IPath getInstanceBaseLocation() {
return InstancePreferences.getBaseLocation();
}
}