Search in sources :

Example 1 with WebAppComboBox

use of com.microsoft.azure.toolkit.intellij.webapp.WebAppComboBox in project azure-tools-for-java by Microsoft.

the class WebAppSlimSettingPanel method createUIComponents.

private void createUIComponents() {
    // TODO: place custom component creation code here
    lblNewSlot = new HyperlinkLabel(message("webapp.deploy.noDeploymentSlot"));
    lblNewSlot.addHyperlinkListener(e -> rbtNewSlot.doClick());
    comboBoxWebApp = new WebAppComboBox(project);
    comboBoxWebApp.addItemListener(e -> loadDeploymentSlot(getSelectedWebApp()));
    comboBoxWebApp.refreshItems();
    comboBoxArtifact = new AzureArtifactComboBox(this.project);
    comboBoxArtifact.setFileFilter(virtualFile -> {
        final String ext = FileNameUtils.getExtension(virtualFile.getPath());
        return ArrayUtils.contains(FILE_NAME_EXT, ext);
    });
    comboBoxArtifact.refreshItems();
}
Also used : AzureArtifactComboBox(com.microsoft.azure.toolkit.intellij.common.AzureArtifactComboBox) WebAppComboBox(com.microsoft.azure.toolkit.intellij.webapp.WebAppComboBox) HyperlinkLabel(com.intellij.ui.HyperlinkLabel)

Aggregations

HyperlinkLabel (com.intellij.ui.HyperlinkLabel)1 AzureArtifactComboBox (com.microsoft.azure.toolkit.intellij.common.AzureArtifactComboBox)1 WebAppComboBox (com.microsoft.azure.toolkit.intellij.webapp.WebAppComboBox)1