Class ArtifactTypeHelper


  • public class ArtifactTypeHelper
    extends Object
    • Constructor Detail

      • ArtifactTypeHelper

        public ArtifactTypeHelper()
    • Method Detail

      • 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)
                                                                                                                    throws IllegalArtifactReferenceException
        Returns a query matching the installable units representing the specified Eclipse artifact(s).
        Parameters:
        type - Eclipse artifact type as defined in Tycho's ArtifactType
        Throws:
        IllegalArtifactReferenceException - if the given artifact type is unknown
      • toTychoArtifact

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

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