Class ArtifactTypeHelper

java.lang.Object
org.eclipse.tycho.p2.target.ArtifactTypeHelper

public class ArtifactTypeHelper extends Object
  • 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's ArtifactType
    • createRequirementFor

      public static org.eclipse.equinox.p2.metadata.IRequirement createRequirementFor(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException
      Throws:
      IllegalArtifactReferenceException
    • toTychoArtifact

      public static ArtifactKey toTychoArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
    • toP2ArtifactKey

      public static org.eclipse.equinox.p2.metadata.IArtifactKey toP2ArtifactKey(ArtifactKey artifact)