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);
});
}
Aggregations