Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1081564] Update rhq ui to support patch update increments when a…
Browse files Browse the repository at this point in the history
…vailable."
  • Loading branch information
Simeon Pinder committed Mar 28, 2014
1 parent c0c6cef commit 93f6083
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -640,4 +640,8 @@ public static boolean isDebugMode() {
return !GWT.isScript();
}

// Update property which records update/patch version: Ex. update-1, cp1, etc.
public static String getUpdateVersion() {
return "";
}
}
Expand Up @@ -71,8 +71,14 @@ private static Canvas buildAboutCanvas(ProductInfo productInfo) {
productUrl.setWrap(false);
productUrl.setWrapTitle(false);

//Conditionally check for and apply update/patch version details
String updatePortion = CoreGUI.getUpdateVersion();
if (updatePortion == null) {
updatePortion = "";
}

StaticTextItem version = new StaticTextItem("version", MSG.view_aboutBox_version());
version.setValue(productInfo.getVersion());
version.setValue(productInfo.getVersion() + (updatePortion.trim().length() == 0 ? "" : " " + updatePortion));
version.setWrap(false);
version.setWrapTitle(false);

Expand Down

0 comments on commit 93f6083

Please sign in to comment.