[hg] main-silver: Notifying in the status bar when a task is sub...

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: Notifying in the status bar when a task is sub...
  • Date: Tue, 07 May 2013 18:45:47 -0700

changeset ed3436e451f7 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/ed3436e451f7
description:
        Notifying in the status bar when a task is submitted.

diffstat:

 bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java |  7 
++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (34 lines):

diff --git 
a/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java 
b/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
--- a/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
+++ b/bugzilla/src/org/netbeans/modules/bugzilla/issue/BugzillaIssue.java
@@ -112,6 +112,7 @@
 import org.netbeans.modules.mylyn.util.SubmitTaskCommand;
 import org.netbeans.modules.mylyn.util.SynchronizeTasksCommand;
 import org.openide.awt.HtmlBrowser;
+import org.openide.awt.StatusDisplayer;
 import org.openide.cookies.OpenCookie;
 import org.openide.filesystems.FileChooserBuilder;
 import org.openide.filesystems.FileObject;
@@ -1084,6 +1085,9 @@
         }
     }
 
+    @NbBundle.Messages({
+        "# {0} - task id and summary", 
"MSG_BugzillaIssue.statusBar.submitted=Task {0} submitted."
+    })
     boolean submitAndRefresh() {
         final boolean[] result = new boolean[1];
         runWithModelLoaded(new Runnable() {
@@ -1142,10 +1146,11 @@
                     result[0] = false;
                     return;
                 }
+                
StatusDisplayer.getDefault().setStatusText(Bundle.MSG_BugzillaIssue_statusBar_submitted(
+                        getDisplayName()));
 
                 setUpToDate(true);
                 result[0] = true;
-                return;
             }
             
         });

[hg] main-silver: Notifying in the status bar when a task is sub...

Ondrej Vrabec 05/08/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close