Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4d5b2cddc777b6cae73d2f7b932305c1880ed3a0 (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
24
25
26
27
28
/*******************************************************************************
 * Copyright (c) 2011, 2017 Sonatype, Inc. 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:
 *     Sonatype, Inc. - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.internal.p2.ui.sdk;

import org.eclipse.core.runtime.IExecutableExtensionFactory;
import org.eclipse.core.runtime.Platform;
import org.eclipse.equinox.p2.ui.RevertProfilePage;
import org.osgi.framework.Bundle;

public class RevertProfilePageExtensionFactory implements IExecutableExtensionFactory {

	@Override
	public Object create() {
		Bundle bundle = Platform.getBundle("org.eclipse.compare"); //$NON-NLS-1$
		if (bundle == null) {
			return new RevertProfilePage();
		}
		return new RevertProfilePageWithCompare();
	}
}

Back to the top