Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2012-05-14 22:08:25 +0000
committerIan Bull2012-05-14 22:08:25 +0000
commit8a16090df20423751452e26b96863507dfd20514 (patch)
tree659dc38b793d87e4a5ff829d4bc653c5bec11c53 /bundles/org.eclipse.equinox.p2.ui.sdk
parentbd4be9c85e4e312c306c8986de4ea89eaff8e611 (diff)
downloadrt.equinox.p2-8a16090df20423751452e26b96863507dfd20514.tar.gz
rt.equinox.p2-8a16090df20423751452e26b96863507dfd20514.tar.xz
rt.equinox.p2-8a16090df20423751452e26b96863507dfd20514.zip
Bug 349628 - No update proposed when there are repository with errorsv20120514-2208I20120514-2100I20120514-1900
Introduces a Suppress Errors flag on the Repository Load job. If this flag is set, then repository load errors are not shown. We set this flag when check for updates happen.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.sdk')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateHandler.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateHandler.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateHandler.java
index f2ce43ad5..aaa3e1f01 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateHandler.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateHandler.java
@@ -11,6 +11,7 @@
package org.eclipse.equinox.internal.p2.ui.sdk;
import org.eclipse.core.runtime.*;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.equinox.p2.operations.RepositoryTracker;
import org.eclipse.equinox.p2.operations.UpdateOperation;
import org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob;
@@ -62,6 +63,12 @@ public class UpdateHandler extends PreloadingRepositoryHandler {
}
@Override
+ protected void setLoadJobProperties(Job loadJob) {
+ super.setLoadJobProperties(loadJob);
+ loadJob.setProperty(LoadMetadataRepositoryJob.SUPPRESS_REPOSITORY_ERRORS, Boolean.toString(true));
+ }
+
+ @Override
protected String getProgressTaskName() {
return ProvSDKMessages.UpdateHandler_ProgressTaskName;
}

Back to the top