forked from qt-creator/qt-creator
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:
@@ -9,7 +9,7 @@
|
||||
"iconText": "java",
|
||||
"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" :
|
||||
[
|
||||
|
Reference in New Issue
Block a user