Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-03-02 22:33:26 +0000
committerPascal Rapicault2010-03-02 22:33:26 +0000
commiteb944fdff7f940cd431bbed60192174a97218ace (patch)
tree7b835c35d3e5d2f60328276069ffc03431480fc6 /bundles/org.eclipse.equinox.p2.director
parent41271261dd3264305b442f4044937084d079d25e (diff)
downloadrt.equinox.p2-eb944fdff7f940cd431bbed60192174a97218ace.tar.gz
rt.equinox.p2-eb944fdff7f940cd431bbed60192174a97218ace.tar.xz
rt.equinox.p2-eb944fdff7f940cd431bbed60192174a97218ace.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director')
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/p2/planner/ProfileInclusionRules.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/p2/planner/ProfileInclusionRules.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/p2/planner/ProfileInclusionRules.java
index 5edf80651..7aa9e5317 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/p2/planner/ProfileInclusionRules.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/p2/planner/ProfileInclusionRules.java
@@ -7,20 +7,35 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Sonatype Inc - Refactoring
*******************************************************************************/
package org.eclipse.equinox.p2.planner;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
+/**
+ * Helper method to decide on the way the installable units are being included.
+ * @since 2.0
+ */
public class ProfileInclusionRules {
private ProfileInclusionRules() {
//Can't instantiate profile inclusion rules
}
+ /**
+ * Provide an inclusion rule to for the installation of the given installable unit
+ * @param iu the iu to be installed.
+ * @return an opaque token to be passed to the {@link IProfileChangeRequest#setInstallableUnitInclusionRules(IInstallableUnit, String)}
+ */
public static String createStrictInclusionRule(IInstallableUnit iu) {
return "STRICT"; //$NON-NLS-1$
}
+ /**
+ * Provide an inclusion rule to optionally install the installable unit being specified
+ * @param iu the iu to be installed.
+ * @return an opaque token to be passed to the {@link IProfileChangeRequest#setInstallableUnitInclusionRules(IInstallableUnit, String)}
+ */
public static String createOptionalInclusionRule(IInstallableUnit iu) {
return "OPTIONAL"; //$NON-NLS-1$
}

Back to the top