Project

General

Profile

menu_construction.rules_3469a_rev_11234.patch

Constantin Asofiei, 03/08/2018 03:50 PM

Download (1.73 KB)

View differences:

rules/convert/menu_construction.rules 2018-03-08 20:34:53 +0000
5 5
** Module   : menu_generator.rules
6 6
** Abstract : Generates MENU code.
7 7
**
8
** Copyright (c) 2015-2017, Golden Code Development Corporation.
8
** Copyright (c) 2015-2018, Golden Code Development Corporation.
9 9
**
10
** _#_ _I_ __Date__ __JPRM__ ____________________________Description_____________________________
11
** 001 VIG 20141101          Initial version
12
** 002 VIG 20150713          Changed MENU and SUB-MENU classnames generation. Now prefix is a 
13
**                           procedure name and postfix is a "Menu" or "SubMenu".        
10
** _#_ _I_ __Date__ _________________________________Description_________________________________
11
** 001 VIG 20141101 Initial version
12
** 002 VIG 20150713 Changed MENU and SUB-MENU classnames generation. Now prefix is a procedure 
13
**                  name and postfix is a "Menu" or "SubMenu".        
14
** 003 CA  20180308 Fixed classname conversion - it was using an aready converted javaname 
15
**                  instead of the legacy name, so it was not converting properly.
14 16
*/
15 17
-->
16 18
<!--
......
112 114
         <action>createImport(sprintf("%s.*", pkgname))</action>
113 115

  
114 116
         <action>
115
            classname = sprintf("%s%s%s", baseClass, names.convert(javaname, names.class, null), "Menu")
117
            classname = sprintf("%s%s%s",
118
                                baseClass,
119
                                names.convert(getNoteString("name"), names.class, null), 
120
                                "Menu")
116 121
         </action>
117 122

  
118 123
         <!-- determine the proper "constructor" name -->