use of com.microsoft.azure.toolkit.intellij.azuresdk.model.AzureSdkArtifactEntity in project azure-tools-for-java by Microsoft.
the class AzureSdkArtifactGroupPanel method setData.
public void setData(@Nonnull final List<? extends AzureSdkArtifactEntity> artifacts) {
this.clear();
if (artifacts.size() > 0) {
for (final AzureSdkArtifactEntity pkg : artifacts) {
final AzureSdkArtifactDetailPanel artifactPnl = buildArtifactPanel(pkg);
this.artifactsPnl.add(artifactPnl.getContentPanel());
this.artifactPnls.add(artifactPnl);
}
this.artifactPnls.get(0).setSelected(true);
}
}
use of com.microsoft.azure.toolkit.intellij.azuresdk.model.AzureSdkArtifactEntity in project azure-tools-for-java by Microsoft.
the class AzureSdkLibraryService method toSdkArtifactEntity.
@Nonnull
private static AzureSdkArtifactEntity toSdkArtifactEntity(@Nonnull AzureJavaSdkEntity entity) {
final AzureSdkArtifactEntity artifact = new AzureSdkArtifactEntity();
artifact.setGroupId(entity.getGroupId());
artifact.setArtifactId(entity.getArtifactId());
artifact.setType(entity.getType());
artifact.setVersionGA(entity.getVersionGA());
artifact.setVersionPreview(entity.getVersionPreview());
artifact.setLinks(buildLinks(entity));
return artifact;
}
Aggregations