1 package org.tigris.scarab.screens; 2 3 48 49 import org.apache.turbine.RunData; 51 import org.apache.turbine.TemplateContext; 52 53 import org.tigris.scarab.tools.ScarabRequestTool; 55 import org.tigris.scarab.tools.ScarabLocalizationTool; 56 57 63 public class AssignIssue extends Default 64 { 65 protected String getTitle(ScarabRequestTool scarabR, 66 ScarabLocalizationTool l10n, 67 RunData data, TemplateContext context) 68 throws Exception 69 { 70 String [] issueIdList = data.getParameters().getStrings("issue_ids"); 71 String singleIssue = data.getParameters().getString("issueId"); 72 Integer size = null; 73 if (issueIdList == null) 74 { 75 size = new Integer (0); 76 } 77 else if (singleIssue != null) 78 { 79 size = new Integer (1); 80 } 81 else 82 { 83 size = new Integer (issueIdList.length); 84 } 85 return l10n.format("AssignUsersWithThisIssue", size); 86 } 87 } 88 | Popular Tags |