diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-05-09 13:26:37 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-05-10 05:47:17 +0000 |
commit | 4f989d6543de221fc4857a8c11750b5645bac7cc (patch) | |
tree | 2c06628d64456263a328f667027c9971737712d2 /share/qtcreator/templates | |
parent | 482fd5f0fde81d76652eade9dc19ae3e54909fe0 (diff) |
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>
Diffstat (limited to 'share/qtcreator/templates')
-rw-r--r-- | share/qtcreator/templates/wizards/files/java/wizard.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/files/java/wizard.json b/share/qtcreator/templates/wizards/files/java/wizard.json index b3e4131d1a..d465c9ead5 100644 --- a/share/qtcreator/templates/wizards/files/java/wizard.json +++ b/share/qtcreator/templates/wizards/files/java/wizard.json @@ -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" : [ |