mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- Introduction of the component generator framework
- Changed some confg attrbiute names for consistency git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -966,32 +966,21 @@ public class NewRuleWizard extends BaseActionWizard
|
||||
{
|
||||
if (this.modelTypes == null)
|
||||
{
|
||||
ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance());
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
ConfigService svc = Application.getConfigService(context);
|
||||
Config wizardCfg = svc.getConfig("Action Wizards");
|
||||
if (wizardCfg != null)
|
||||
{
|
||||
ConfigElement typesCfg = wizardCfg.getConfigElement("types");
|
||||
if (typesCfg != null)
|
||||
{
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
this.modelTypes = new ArrayList<SelectItem>();
|
||||
for (ConfigElement child : typesCfg.getChildren())
|
||||
{
|
||||
QName idQName = Repository.resolveToQName(child.getAttribute("name"));
|
||||
|
||||
// look for a client localized string
|
||||
String label = null;
|
||||
String msgId = child.getAttribute("displayLabelId");
|
||||
if (msgId != null)
|
||||
{
|
||||
label = Application.getMessage(context, msgId);
|
||||
}
|
||||
|
||||
// if there wasn't an externalized string look for one in the config
|
||||
if (label == null)
|
||||
{
|
||||
label = child.getAttribute("displayLabel");
|
||||
}
|
||||
// get the display label from config
|
||||
String label = Utils.getDisplayLabel(context, child);
|
||||
|
||||
// if there wasn't a client based label try and get it from the dictionary
|
||||
if (label == null)
|
||||
|
Reference in New Issue
Block a user