1 package org.tigris.scarab.screens.admin; 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 import org.tigris.scarab.om.IssueType; 57 import org.tigris.scarab.screens.Default; 58 59 65 public class GlobalArtifactTypeEdit extends Default 66 { 67 protected String getTitle(ScarabRequestTool scarabR, 68 ScarabLocalizationTool l10n, 69 RunData data, TemplateContext context) 70 throws Exception 71 { 72 IssueType issueType = scarabR.getIssueType(); 73 String title = null; 74 if (issueType.getIssueTypeId() != null) 75 { 76 String name = issueType.getName(); 77 title = l10n.format("EditGlobalIssueType", name); 78 } 79 else 80 { 81 title = l10n.get("CreateNewIssueType"); 82 } 83 return title; 84 } 85 } 86 | Popular Tags |