Search in sources :

Example 1 with AzureSdkArtifactEntity

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);
    }
}
Also used : AzureSdkArtifactEntity(com.microsoft.azure.toolkit.intellij.azuresdk.model.AzureSdkArtifactEntity)

Example 2 with AzureSdkArtifactEntity

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;
}
Also used : AzureSdkArtifactEntity(com.microsoft.azure.toolkit.intellij.azuresdk.model.AzureSdkArtifactEntity) Nonnull(javax.annotation.Nonnull)

Aggregations

AzureSdkArtifactEntity (com.microsoft.azure.toolkit.intellij.azuresdk.model.AzureSdkArtifactEntity)2 Nonnull (javax.annotation.Nonnull)1