# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/tester/nbsrc/cdev/hudson # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/org/netbeans/modules/hudson/ui/Bundle.properties --- src/org/netbeans/modules/hudson/ui/Bundle.properties Base (BASE) +++ src/org/netbeans/modules/hudson/ui/Bundle.properties Locally Modified (Based On LOCAL) @@ -41,13 +41,14 @@ LBL_NoDescription=There is no available description. LBL_Permalinks=PERMALINKS -LBL_LastBuild=Last build #{0} -LBL_LastStableBuild=Last stable build #{0} -LBL_LastSuccessfulBuild=Last successful build #{0} -LBL_LastFailedBuild=Last failed build #{0} +LBL_LastBuild=Last build {0} +LBL_LastStableBuild=Last stable build {0} +LBL_LastSuccessfulBuild=Last successful build {0} +LBL_LastFailedBuild=Last failed build {0} LBL_Show=Show LBL_NoAvailableBuild=There is no available build to display +LBL_NoAvailableBuildBrief=... not available LBL_Loading=Loading Index: src/org/netbeans/modules/hudson/ui/HudsonJobPermalinksPanel.java --- src/org/netbeans/modules/hudson/ui/HudsonJobPermalinksPanel.java Base (BASE) +++ src/org/netbeans/modules/hudson/ui/HudsonJobPermalinksPanel.java Locally Modified (Based On LOCAL) @@ -67,14 +67,18 @@ this.job = job; // Set data - lastBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, - "LBL_LastBuild", job.getLastBuild())); - lastFailedBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, - "LBL_LastFailedBuild", job.getLastFailedBuild())); - lastSuccessfulBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, - "LBL_LastSuccessfulBuild", job.getLastSuccessfulBuild())); - lastStableBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, - "LBL_LastStableBuild", job.getLastStableBuild())); + int lastBuild = job.getLastBuild(); + int lastFailedBuild = job.getLastFailedBuild(); + int lastSuccessfulBuild = job.getLastSuccessfulBuild(); + int lastStableBuild = job.getLastStableBuild(); + lastBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_LastBuild", + lastBuild>=0?"#"+lastBuild:NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_NoAvailableBuildBrief"))); + lastFailedBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_LastFailedBuild", + lastFailedBuild>=0?"#"+lastFailedBuild:NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_NoAvailableBuildBrief"))); + lastSuccessfulBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_LastSuccessfulBuild", + lastSuccessfulBuild>=0?"#"+lastSuccessfulBuild:NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_NoAvailableBuildBrief"))); + lastStableBuildLabel.setText(NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_LastStableBuild", + lastStableBuild>=0?"#"+lastStableBuild:NbBundle.getMessage(HudsonJobPermalinksPanel.class, "LBL_NoAvailableBuildBrief"))); // Set labels lastBuildLabel.setEnabled(job.getLastBuild() >= 0);