Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2011-03-19 03:00:45 +0000
committerPascal Rapicault2011-03-19 03:00:45 +0000
commit8b070277b9acc59692f7860043bd2fe9c6c810e7 (patch)
treebdbd2a25683a324c28a140b7b0bfe8fd15613373 /bundles/org.eclipse.equinox.p2.ui.sdk
parentbd6ae3643f6dd42f3f50bcd0ab4d6c6d66df129d (diff)
downloadrt.equinox.p2-8b070277b9acc59692f7860043bd2fe9c6c810e7.tar.gz
rt.equinox.p2-8b070277b9acc59692f7860043bd2fe9c6c810e7.tar.xz
rt.equinox.p2-8b070277b9acc59692f7860043bd2fe9c6c810e7.zip
Bug 333810 - Add an p2 RCP UI
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.sdk')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/.settings/.api_filters8
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/p2.inf4
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/plugin.xml2
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageExtensionFactory.java31
5 files changed, 45 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/.settings/.api_filters b/bundles/org.eclipse.equinox.p2.ui.sdk/.settings/.api_filters
index 69033c6c2..268debca0 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/.settings/.api_filters
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/.settings/.api_filters
@@ -8,6 +8,14 @@
</message_arguments>
</filter>
</resource>
+ <resource path="src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageExtensionFactory.java" type="org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePageExtensionFactory">
+ <filter id="572522506">
+ <message_arguments>
+ <message_argument value="RevertProfilePage"/>
+ <message_argument value="RevertProfilePageExtensionFactory"/>
+ </message_arguments>
+ </filter>
+ </resource>
<resource path="src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageWithCompare.java" type="org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePageWithCompare">
<filter id="571473929">
<message_arguments>
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF
index 1a358c4d7..36dcf111d 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF
@@ -11,7 +11,7 @@ Export-Package: org.eclipse.equinox.internal.p2.ui.sdk;x-internal:=true,
Require-Bundle: org.eclipse.ui;bundle-version="3.6.0",
org.eclipse.core.runtime,
org.eclipse.equinox.p2.ui,
- org.eclipse.compare
+ org.eclipse.compare;resolution:=optional
Import-Package: javax.xml.parsers,
org.eclipse.equinox.p2.core;version="[2.0.0,3.0.0)",
org.eclipse.equinox.p2.engine;version="[2.0.0,3.0.0)",
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/p2.inf b/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/p2.inf
new file mode 100644
index 000000000..c98287bd8
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/META-INF/p2.inf
@@ -0,0 +1,4 @@
+ requires.0.namespace = osgi.bundle
+ requires.0.name = org.eclipse.compare
+ requires.0.greedy = false
+ requires.0.optional = true \ No newline at end of file
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/plugin.xml b/bundles/org.eclipse.equinox.p2.ui.sdk/plugin.xml
index 8722ca97c..f542dcddf 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/plugin.xml
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/plugin.xml
@@ -115,7 +115,7 @@
</page>
<page
name="%installHistoryPage"
- class="org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePageWithCompare"
+ class="org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePageExtensionFactory"
id="11.org.eclipse.equinox.internal.p2.ui.sdk.RevertProfilePage">
</page>
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageExtensionFactory.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageExtensionFactory.java
new file mode 100644
index 000000000..74824d37b
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/RevertProfilePageExtensionFactory.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Sonatype, Inc.
+ * 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 {
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.IExecutableExtensionFactory#create()
+ */
+ public Object create() {
+ Bundle bundle = Platform.getBundle("org.eclipse.compare"); //$NON-NLS-1$
+ if (bundle == null) {
+ return new RevertProfilePage();
+ }
+ return new RevertProfilePageWithCompare();
+ }
+} \ No newline at end of file

Back to the top