Search in sources :

Example 36 with StatusBar

use of com.intellij.openapi.wm.StatusBar 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)36 Project (com.intellij.openapi.project.Project)8 WindowManager (com.intellij.openapi.wm.WindowManager)6 Editor (com.intellij.openapi.editor.Editor)4 PsiElement (com.intellij.psi.PsiElement)4 FindManager (com.intellij.find.FindManager)3 FindModel (com.intellij.find.FindModel)3 FileEditorManager (com.intellij.openapi.fileEditor.FileEditorManager)3 VirtualFile (com.intellij.openapi.vfs.VirtualFile)3 IdeFrame (com.intellij.openapi.wm.IdeFrame)3 HighlightManager (com.intellij.codeInsight.highlighting.HighlightManager)2 Application (com.intellij.openapi.application.Application)2 Document (com.intellij.openapi.editor.Document)2 EditorColorsManager (com.intellij.openapi.editor.colors.EditorColorsManager)2 EditorColorsScheme (com.intellij.openapi.editor.colors.EditorColorsScheme)2 TextAttributes (com.intellij.openapi.editor.markup.TextAttributes)2 FileChooserDescriptorFactory (com.intellij.openapi.fileChooser.FileChooserDescriptorFactory)2 MessageType (com.intellij.openapi.ui.MessageType)2 TextFieldWithBrowseButton (com.intellij.openapi.ui.TextFieldWithBrowseButton)2 HyperlinkLabel (com.intellij.ui.HyperlinkLabel)2