diff options
author | dj | 2011-11-07 21:37:19 +0000 |
---|---|---|
committer | dj | 2011-11-07 21:37:19 +0000 |
commit | 660583f738fb90827ef1488e80f07f1faf102d66 (patch) | |
tree | b6e53e8e65e1cfdb950cbb92ad130b0a025e9662 /bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox | |
parent | 6dac536bc05f48b1898134f47d1a7290ca283672 (diff) | |
download | rt.equinox.p2-660583f738fb90827ef1488e80f07f1faf102d66.tar.gz rt.equinox.p2-660583f738fb90827ef1488e80f07f1faf102d66.tar.xz rt.equinox.p2-660583f738fb90827ef1488e80f07f1faf102d66.zip |
Added comments.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java index 55affc2a2..f733b2719 100644 --- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java +++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java @@ -300,7 +300,8 @@ public class SimplePlanner implements IPlanner { return satisfyMetaRequirements(p.getProperties()); } - //Return the set of IUs representing the complete future state of the profile to satisfy the request or return a ProvisioningPlan when the request can not be satisfied + // Return the set of IUs representing the complete future state of the profile to satisfy the request or return a + // ProvisioningPlan when the request can not be satisfied private Object getSolutionFor(ProfileChangeRequest profileChangeRequest, ProvisioningContext context, IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, ExpandWork); sub.setTaskName(Messages.Director_Task_Resolving_Dependencies); @@ -378,6 +379,7 @@ public class SimplePlanner implements IPlanner { try { //Get the solution for the initial request Object resolutionResult = getSolutionFor(pcr, context, sub.newChild(ExpandWork / 2)); + // a return value of a plan indicates failure when resolving so return. if (resolutionResult instanceof IProvisioningPlan) return (IProvisioningPlan) resolutionResult; |