public InstallableUnitPatchDescription() { super(); setProperty(InstallableUnitDescription.PROP_TYPE_PATCH, Boolean.TRUE.toString()); }
Version version = Version.parseVersion(feature.getVersion()); iu.setVersion(version); iu.setProperty(IInstallableUnit.PROP_NAME, feature.getLabel()); if (feature.getDescription() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION, feature.getDescription()); if (feature.getDescriptionURL() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION_URL, feature.getDescriptionURL()); if (feature.getProviderName() != null) iu.setProperty(IInstallableUnit.PROP_PROVIDER, feature.getProviderName()); if (feature.getLicense() != null) iu.setLicenses(new ILicense[] {MetadataFactory.createLicense(toURIOrNull(feature.getLicenseURL()), feature.getLicense())}); processTouchpointAdvice(iu, null, publisherInfo); processInstallableUnitPropertiesAdvice(iu, publisherInfo); iu.setProperty(InstallableUnitDescription.PROP_TYPE_GROUP, Boolean.TRUE.toString()); iu.setProperty(InstallableUnitDescription.PROP_TYPE_PATCH, Boolean.TRUE.toString()); Map<String, String> translatedStrings = locEntry.getValue(); for (Entry<String, String> e : translatedStrings.entrySet()) { iu.setProperty(locale.toString() + '.' + e.getKey(), e.getValue());
Version version = Version.parseVersion(feature.getVersion()); iu.setVersion(version); iu.setProperty(IInstallableUnit.PROP_NAME, feature.getLabel()); if (feature.getDescription() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION, feature.getDescription()); if (feature.getDescriptionURL() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION_URL, feature.getDescriptionURL()); if (feature.getProviderName() != null) iu.setProperty(IInstallableUnit.PROP_PROVIDER, feature.getProviderName()); if (feature.getLicense() != null) iu.setLicenses(new ILicense[] {MetadataFactory.createLicense(toURIOrNull(feature.getLicenseURL()), feature.getLicense())}); processTouchpointAdvice(iu, null, publisherInfo); processInstallableUnitPropertiesAdvice(iu, publisherInfo); iu.setProperty(InstallableUnitDescription.PROP_TYPE_GROUP, Boolean.TRUE.toString()); iu.setProperty(InstallableUnitDescription.PROP_TYPE_PATCH, Boolean.TRUE.toString()); Map<String, String> translatedStrings = locEntry.getValue(); for (Entry<String, String> e : translatedStrings.entrySet()) { iu.setProperty(locale.toString() + '.' + e.getKey(), e.getValue());
Version version = Version.parseVersion(feature.getVersion()); iu.setVersion(version); iu.setProperty(IInstallableUnit.PROP_NAME, feature.getLabel()); if (feature.getDescription() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION, feature.getDescription()); if (feature.getDescriptionURL() != null) iu.setProperty(IInstallableUnit.PROP_DESCRIPTION_URL, feature.getDescriptionURL()); if (feature.getProviderName() != null) iu.setProperty(IInstallableUnit.PROP_PROVIDER, feature.getProviderName()); if (feature.getLicense() != null) iu.setLicenses(new ILicense[] {MetadataFactory.createLicense(toURIOrNull(feature.getLicenseURL()), feature.getLicense())}); processTouchpointAdvice(iu, null, publisherInfo); processInstallableUnitPropertiesAdvice(iu, publisherInfo); iu.setProperty(InstallableUnitDescription.PROP_TYPE_GROUP, Boolean.TRUE.toString()); iu.setProperty(InstallableUnitDescription.PROP_TYPE_PATCH, Boolean.TRUE.toString()); Map<String, String> translatedStrings = locEntry.getValue(); for (Entry<String, String> e : translatedStrings.entrySet()) { iu.setProperty(locale.toString() + '.' + e.getKey(), e.getValue());
String id = existingIU.getId(); iuPatchDescription.setId(id + ".patch"); //$NON-NLS-1$ iuPatchDescription.setProperty(IInstallableUnit.PROP_NAME, NLS.bind(PDEUIMessages.RuntimeInstallJob_installPatchName, id)); iuPatchDescription.setProperty(IInstallableUnit.PROP_DESCRIPTION, PDEUIMessages.RuntimeInstallJob_installPatchDescription); Version patchVersion = Version.createOSGi(1, 0, 0, QualifierReplacer.getDateQualifier()); iuPatchDescription.setVersion(patchVersion); iuPatchDescription.setProperty(InstallableUnitDescription.PROP_TYPE_PATCH, Boolean.TRUE.toString());