Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-09-02 22:14:35 +0000
committerSusan Franklin2010-09-02 22:14:35 +0000
commit6870a6e7b830c835c1f0522121ae13e6185a8108 (patch)
tree823d94985a6eb907ebc7a482a6b86726c4065e51 /bundles/org.eclipse.equinox.p2.ui.admin
parent9792d65d536ce4b1895927915b413559ab2ca361 (diff)
downloadrt.equinox.p2-6870a6e7b830c835c1f0522121ae13e6185a8108.tar.gz
rt.equinox.p2-6870a6e7b830c835c1f0522121ae13e6185a8108.tar.xz
rt.equinox.p2-6870a6e7b830c835c1f0522121ae13e6185a8108.zip
Bug 320613 - [ui] [admin] - problem installing with vague error message
Changes to support establishing profile id up front when necessary
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.admin')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/InstallAction.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProvView.java3
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/InstallAction.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/InstallAction.java
index 3948c5eda..f19ec30bb 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/InstallAction.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/InstallAction.java
@@ -36,6 +36,7 @@ public class InstallAction extends ProfileModificationAction {
public InstallAction(ProvisioningUI ui, ISelectionProvider selectionProvider) {
super(ui, ProvUI.INSTALL_COMMAND_LABEL, selectionProvider, null);
setToolTipText(ProvUI.INSTALL_COMMAND_TOOLTIP);
+ userChosenProfileId = ui.getProfileId();
}
/*
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProvView.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProvView.java
index 63a30fd74..ebd8a393e 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProvView.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ProvView.java
@@ -18,7 +18,6 @@ import org.eclipse.equinox.internal.p2.ui.QueryProvider;
import org.eclipse.equinox.internal.p2.ui.actions.RefreshAction;
import org.eclipse.equinox.internal.p2.ui.admin.preferences.PreferenceConstants;
import org.eclipse.equinox.internal.p2.ui.viewers.*;
-import org.eclipse.equinox.p2.engine.IProfileRegistry;
import org.eclipse.equinox.p2.operations.ProvisioningJob;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.action.*;
@@ -246,7 +245,7 @@ abstract class ProvView extends ViewPart {
}
protected String getProfileId() {
- return IProfileRegistry.SELF;
+ return null;
}
protected ProvisioningUI getProvisioningUI() {

Back to the top