msgs.format("jsf.copyVersion.Cancelled", versionSlug));
}
public String getCopyVersionCompletePercent(String projectSlug,
String versionSlug) {
CopyVersionTaskHandle handler =
copyVersionManager.getCopyVersionProcessHandle(projectSlug,
versionSlug);
if (handler != null) {
double completedPercent =
(double) handler.getCurrentProgress() / (double) handler
.getMaxProgress() * 100;
if (Double.compare(completedPercent, 100) == 0) {
conversationScopeMessages.setMessage(
FacesMessage.SEVERITY_INFO,
msgs.format("jsf.copyVersion.Completed", versionSlug));