Package org.eclipse.tycho.p2.target
Class ArtifactTypeHelper
java.lang.Object
org.eclipse.tycho.p2.target.ArtifactTypeHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit>createQueryFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) Returns a query matching the installable units representing the specified Eclipse artifact(s).static org.eclipse.equinox.p2.metadata.IRequirementcreateRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) static org.eclipse.equinox.p2.metadata.IArtifactKeytoP2ArtifactKey(ArtifactKey artifact) static ArtifactKeytoTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
-
Constructor Details
-
ArtifactTypeHelper
public ArtifactTypeHelper()
-
-
Method Details
-
createQueryFor
public static org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> createQueryFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) Returns a query matching the installable units representing the specified Eclipse artifact(s).- Parameters:
type- Eclipse artifact type as defined in Tycho'sArtifactType
-
createRequirementFor
public static org.eclipse.equinox.p2.metadata.IRequirement createRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException -
toTychoArtifact
-
toP2ArtifactKey
-