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