Wizards: Fix java file wizard

Avoid ending up with a wrong named class when specifying the
file name instead of the class name.

Change-Id: I5e2ddaae1a16d60aa40fb9303e8d49efa9f51b7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2019-05-09 13:26:37 +02:00
parent 482fd5f0fd
commit 4f989d6543

View File

@@ -9,7 +9,7 @@
"iconText": "java", "iconText": "java",
"enabled": "%{JS: value('Plugins').indexOf('Android') >= 0}", "enabled": "%{JS: value('Plugins').indexOf('Android') >= 0}",
"options": [ { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1)}" } ], "options": [ { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1).replace(/\.java$/,'')}" } ],
"pages" : "pages" :
[ [