[hg] main-silver: #234446 - java.util.MissingResourceException: ...

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: #234446 - java.util.MissingResourceException: ...
  • Date: Fri, 16 Aug 2013 08:56:19 -0700

changeset 3dcaca0c8e27 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/3dcaca0c8e27
description:
        #234446 - java.util.MissingResourceException: Can't find resource for 
bundle org.openide.util.NbBundle$PBundle, key LBL_MatchingTasks

diffstat:

 jira/src/org/netbeans/modules/jira/query/Bundle.properties    |   4 +---
 jira/src/org/netbeans/modules/jira/query/QueryController.java |  11 
++++-------
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (51 lines):

diff --git a/jira/src/org/netbeans/modules/jira/query/Bundle.properties 
b/jira/src/org/netbeans/modules/jira/query/Bundle.properties
--- a/jira/src/org/netbeans/modules/jira/query/Bundle.properties
+++ b/jira/src/org/netbeans/modules/jira/query/Bundle.properties
@@ -77,7 +77,6 @@
 QueryPanel.removeButton.text=Remove
 QueryPanel.saveButton.text=Save query
 QueryPanel.webButton.text=Open web Query
-LBL_MatchingIssues=There are {0} tasks matching this query.
 QueryPanel.saveChangesButton.text=Save Changes
 QueryPanel.cancelChangesButton.text=Cancel Changes
 QueryPanel.jLabel4.text_1=
@@ -86,7 +85,6 @@
 
 LBL_SelectKeywords=Select or deselect keywords.
 QueryPanel.noContentLabel.text=jLabel9
-LBL_MATCHINGISSUES=LBL_MatchingTasks
 QueryPanel.queryLabel.text_1=Query:
 QueryPanel.summaryCheckBox.text=Summary
 QueryPanel.descriptionCheckBox.text=Description
@@ -148,4 +146,4 @@
 QueryPanel.jLabel22.text=
 
 LBL_Loading=Loading...
-MSG_CANNOT_REMOVE_SERVER_FILTER=Cannot remove a JIRA server filter.
\ No newline at end of file
+MSG_CANNOT_REMOVE_SERVER_FILTER=Cannot remove a JIRA server filter.
diff --git a/jira/src/org/netbeans/modules/jira/query/QueryController.java 
b/jira/src/org/netbeans/modules/jira/query/QueryController.java
--- a/jira/src/org/netbeans/modules/jira/query/QueryController.java
+++ b/jira/src/org/netbeans/modules/jira/query/QueryController.java
@@ -604,17 +604,14 @@
         }
     }
 
+    @NbBundle.Messages({
+        "# {0} - tasks count", "LBL_MatchingIssues=There are {0} tasks 
matching this query."
+    })
     protected void setIssueCount(final int count) {
         EventQueue.invokeLater(new Runnable() {
             @Override
             public void run() {
-                panel.tableSummaryLabel.setText(
-                    NbBundle.getMessage(
-                        QueryController.class,
-                        NbBundle.getMessage(QueryController.class, 
"LBL_MATCHINGISSUES"),                           // NOI18N
-                        new Object[] { count }
-                    )
-                );
+                
panel.tableSummaryLabel.setText(Bundle.LBL_MatchingIssues(count)); //NOI18N
             }
         });
     }

[hg] main-silver: #234446 - java.util.MissingResourceException: ...

Ondrej Vrabec 08/16/2013

Project Features

About this Project

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