Search in sources :

Example 1 with UpdateDeploymentForm

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

the class UpdateDeploymentAction method doActionPerformed.

private void doActionPerformed(NodeActionEvent e, boolean isLoggedIn, Project project) {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
    try {
        if (isLoggedIn) {
            UpdateDeploymentForm updateDeploymentForm = new UpdateDeploymentForm(project, deploymentNode);
            updateDeploymentForm.show();
        }
    } catch (Exception ex) {
        AzurePlugin.log("Error Update Deployment", ex);
        UIUtils.showNotification(statusBar, NOTIFY_UPDATE_DEPLOYMENT_FAIL + ", " + ex.getMessage(), MessageType.ERROR);
    }
}
Also used : UpdateDeploymentForm(com.microsoft.azure.toolkit.intellij.arm.UpdateDeploymentForm) StatusBar(com.intellij.openapi.wm.StatusBar)

Aggregations

StatusBar (com.intellij.openapi.wm.StatusBar)1 UpdateDeploymentForm (com.microsoft.azure.toolkit.intellij.arm.UpdateDeploymentForm)1