Search in sources :

Example 1 with RequiredCapability

use of org.eclipse.equinox.internal.p2.metadata.RequiredCapability in project tycho by eclipse.

the class MirrorApplicationServiceTest method strictRequirementTo.

private static Set<IRequirement> strictRequirementTo(VersionedId unit) {
    VersionRange strictRange = new VersionRange(unit.getVersion(), true, unit.getVersion(), true);
    IRequirement requirement = new RequiredCapability(IInstallableUnit.NAMESPACE_IU_ID, unit.getId(), strictRange, null, false, false);
    return Collections.singleton(requirement);
}
Also used : IRequirement(org.eclipse.equinox.p2.metadata.IRequirement) RequiredCapability(org.eclipse.equinox.internal.p2.metadata.RequiredCapability) VersionRange(org.eclipse.equinox.p2.metadata.VersionRange)

Aggregations

RequiredCapability (org.eclipse.equinox.internal.p2.metadata.RequiredCapability)1 IRequirement (org.eclipse.equinox.p2.metadata.IRequirement)1 VersionRange (org.eclipse.equinox.p2.metadata.VersionRange)1