(0018872)
|
hgbot
|
2009-08-07 08:03
|
|
Repository: erp/devel/pi
Changeset: 141033086c67e4c7896ea409cd23f5f576a64f0d
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Aug 07 08:03:17 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/141033086c67e4c7896ea409cd23f5f576a64f0d [^]
fixed bug 0010207: Static calls members with shared use in translation code
This fix includes
part1:
- fileName, language, conn: pass as parameters, remove statics
- interfaceType unused, remove
- inline code from populateLabelMap into retrieveLabelData
and let retireveLabelData return the result HashMap
- removes textmap, textData statics
part2:
- in populateProcessLabels
use local array to collecting result and return it
do not touch global array anymore
- in processProcessLabels
use (new) returnValue of populateProcessLabels and return it
in error case return zero-sized empty as then for-loop in caller just does nothing
part3:
- in processFormLabels
use local windowLabels array instead of global one
simplify copying vector -> array
return empty array in error case (so for-loop in caller does nothing)
part2+3 assume that the array values from processProcessLabels and processFormLabels should not mix..
part4:
- in processFormLabels
allocate local windowLabelsCol list
- pass list into populateFieldLabels & populateFieldGroupLabels as parameter
- in populateFieldLabels, populateFieldGroupLabels
modify parameter passed in list, instead of global one
---
M src-core/src/org/openbravo/uiTranslation/TranslationUtils.java
---
|
|