Git push active branches: show balloon after successful push along with a notification.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Fri, 22 Apr 2011 08:00:59 +0000 (12:00 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Fri, 22 Apr 2011 08:14:16 +0000 (12:14 +0400)
plugins/git4idea/src/git4idea/checkin/GitPushActiveBranchesDialog.java

index 65361729973a6516618be8963c6a67bfbc054997..6e1bc8338c1685bc0590c9a6c132bff2535dbd55 100644 (file)
@@ -26,9 +26,11 @@ import com.intellij.openapi.progress.Task;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ex.ProjectManagerEx;
 import com.intellij.openapi.ui.DialogWrapper;
+import com.intellij.openapi.ui.MessageType;
 import com.intellij.openapi.util.Clock;
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vcs.VcsException;
+import com.intellij.openapi.vcs.ui.VcsBalloonProblemNotifier;
 import com.intellij.openapi.vcs.update.UpdatedFiles;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.ui.CheckboxTree;
@@ -246,8 +248,9 @@ public class GitPushActiveBranchesDialog extends DialogWrapper {
                   commitsNum -= unchecked.size();
                 }
               }
-              GitUIUtil.notifySuccess(myProject, "Pushed successfully",
-                                      "Pushed " + commitsNum + " " + StringUtil.pluralize("commit", commitsNum) + ".");
+              final String pushMessage = "Pushed " + commitsNum + " " + StringUtil.pluralize("commit", commitsNum) + ".";
+              GitUIUtil.notifySuccess(myProject, "", pushMessage);
+              VcsBalloonProblemNotifier.showOverVersionControlView(myVcs.getProject(), pushMessage, MessageType.INFO);
               return;
             }
             pushExceptions = new ArrayList<VcsException>(exceptions);