Skip to main content
summaryrefslogtreecommitdiffstats
blob: fc08615ee1dc7d87d21830771a5071d528b556be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.runtime.adaptor.testsupport;

import java.io.File;
import org.eclipse.osgi.internal.resolver.StateManager;
import org.osgi.framework.BundleContext;

public class SimplePlatformAdmin extends StateManager {
	public SimplePlatformAdmin(File bundleRootDir, BundleContext context) {
		super(new File(bundleRootDir, ".state"), new File(bundleRootDir, ".lazy"), context); //$NON-NLS-1$//$NON-NLS-2$
		createSystemState();
		setInstaller(new SimpleBundleInstaller(getSystemState()));
	}
}

Back to the top