diff options
Diffstat (limited to 'share/qtcreator/templates/wizards/files/java/wizard.json')
-rw-r--r-- | share/qtcreator/templates/wizards/files/java/wizard.json | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/qtcreator/templates/wizards/files/java/wizard.json b/share/qtcreator/templates/wizards/files/java/wizard.json index 5a8fae5dc1..83087984fc 100644 --- a/share/qtcreator/templates/wizards/files/java/wizard.json +++ b/share/qtcreator/templates/wizards/files/java/wizard.json @@ -9,7 +9,10 @@ "iconText": "java", "enabled": "%{JS: value('Plugins').indexOf('Android') >= 0}", - "options": [ { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1).replace(/[.]java$/,'')}" } ], + "options": [ + { "key": "ClassName", "value": "%{JS: value('FileName').charAt(0).toUpperCase() + value('FileName').substr(1).replace(/[.]java$/,'')}" }, + { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-java')}" } + ], "pages" : [ @@ -31,7 +34,7 @@ "data": { "source": "source.java", - "target": "%{JS: Util.fileName(value('Path') + '/' + value('ClassName'), Util.preferredSuffix('text/x-java'))}", + "target": "%{JS: Util.fileName(value('Path') + '/' + value('ClassName'), value('DefaultSuffix'))}", "openInEditor": true } } |