Author: jleroux
Date: Sun Aug 20 12:11:39 2017
New Revision: 1805548

URL: http://svn.apache.org/viewvc?rev=1805548&view=rev
Log:
No functional change,

In 3 places we use uiLabelMap.get("xxxxx") instead of uiLabelMap.xxxxx which 
does essentially the same when there is no default parameter passed to get()
http://mrhaki.blogspot.fr/2009/11/groovy-goodness-get-value-from-map-or.html

Modified:
    
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/datafile/ViewDataFile.groovy
    
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy

Modified: 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/datafile/ViewDataFile.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/datafile/ViewDataFile.groovy?rev=1805548&r1=1805547&r2=1805548&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/datafile/ViewDataFile.groovy
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/datafile/ViewDataFile.groovy
 Sun Aug 20 12:11:39 2017
@@ -83,7 +83,7 @@ if (dataFile) {
 if (dataFile && dataFileSave) {
     try {
         dataFile.writeDataFile(dataFileSave)
-        messages.add(uiLabelMap.get("WebtoolsDataFileSavedTo") + dataFileSave)
+        messages.add(uiLabelMap.WebtoolsDataFileSavedTo) + dataFileSave)
     }
     catch (Exception e) {
         messages.add(e.getMessage())
@@ -94,7 +94,7 @@ if (dataFile && entityXmlFileSave) {
     try {
         //dataFile.writeDataFile(entityXmlFileSave)
         DataFile2EntityXml.writeToEntityXml(entityXmlFileSave, dataFile)
-        messages.add(uiLabelMap.get("WebtoolsDataEntityFileSavedTo") + 
entityXmlFileSave)
+        messages.add(uiLabelMap.WebtoolsDataEntityFileSavedTo) + 
entityXmlFileSave)
     }
     catch (Exception e) {
         messages.add(e.getMessage())

Modified: 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy?rev=1805548&r1=1805547&r2=1805548&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy
 Sun Aug 20 12:11:39 2017
@@ -450,7 +450,7 @@ if (selectedService) {
             outParamsList.add(curOutParam)
         }
         outParamMap = [:]
-        outParamMap.title = uiLabelMap.get("WebtoolsOutParameters")
+        outParamMap.title = uiLabelMap.WebtoolsOutParameters)
         outParamMap.paramList = outParamsList
         allParamsList.add(outParamMap)
 


Reply via email to