Search in sources :

Example 1 with AppServiceInfoAdvancedPanel

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

the class WebAppConfigFormPanelAdvance method createUIComponents.

private void createUIComponents() {
    // TODO: place custom component creation code here
    appServiceConfigPanelAdvanced = new AppServiceInfoAdvancedPanel(project, WebAppConfig::getWebAppDefaultConfig);
    final List<PricingTier> validPricing = AzureMvpModel.getInstance().listPricingTier();
    appServiceConfigPanelAdvanced.setValidPricingTier(validPricing, WebAppConfig.DEFAULT_PRICING_TIER);
    appServiceMonitorPanel = new AppServiceMonitorPanel(project);
    // Application Insights is not supported in Web App
    appServiceMonitorPanel.setApplicationInsightsVisible(false);
    appServiceMonitorPanel.setData(MonitorConfig.builder().build());
    appServiceConfigPanelAdvanced.getSelectorRuntime().addActionListener(event -> {
        final Runtime runtime = appServiceConfigPanelAdvanced.getSelectorRuntime().getValue();
        appServiceMonitorPanel.setApplicationLogVisible(runtime != null && runtime.getOperatingSystem() == OperatingSystem.WINDOWS);
    });
}
Also used : PricingTier(com.microsoft.azure.toolkit.lib.appservice.model.PricingTier) Runtime(com.microsoft.azure.toolkit.lib.appservice.model.Runtime) AppServiceInfoAdvancedPanel(com.microsoft.azure.toolkit.intellij.appservice.AppServiceInfoAdvancedPanel) AppServiceMonitorPanel(com.microsoft.azure.toolkit.intellij.appservice.AppServiceMonitorPanel)

Aggregations

AppServiceInfoAdvancedPanel (com.microsoft.azure.toolkit.intellij.appservice.AppServiceInfoAdvancedPanel)1 AppServiceMonitorPanel (com.microsoft.azure.toolkit.intellij.appservice.AppServiceMonitorPanel)1 PricingTier (com.microsoft.azure.toolkit.lib.appservice.model.PricingTier)1 Runtime (com.microsoft.azure.toolkit.lib.appservice.model.Runtime)1