Search in sources :

Example 1 with CreateApplicationInsightsDialog

use of com.microsoft.azure.toolkit.intellij.function.runner.component.CreateApplicationInsightsDialog in project azure-tools-for-java by Microsoft.

the class ApplicationInsightsComboBox method onCreateApplicationInsights.

private void onCreateApplicationInsights() {
    final CreateApplicationInsightsDialog dialog = new CreateApplicationInsightsDialog();
    dialog.pack();
    if (dialog.showAndGet()) {
        ApplicationInsightsConfig config = ApplicationInsightsConfig.builder().newCreate(true).name(dialog.getApplicationInsightsName()).build();
        addItem(config);
        setSelectedItem(config);
    }
}
Also used : CreateApplicationInsightsDialog(com.microsoft.azure.toolkit.intellij.function.runner.component.CreateApplicationInsightsDialog) ApplicationInsightsConfig(com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig)

Aggregations

CreateApplicationInsightsDialog (com.microsoft.azure.toolkit.intellij.function.runner.component.CreateApplicationInsightsDialog)1 ApplicationInsightsConfig (com.microsoft.azure.toolkit.lib.appservice.ApplicationInsightsConfig)1