langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/resources/l10n.properties
changeset 46185 f4c981fc7818
parent 45501 a13e5e2ee35e
--- a/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/resources/l10n.properties	Tue Aug 15 13:16:32 2017 -0700
+++ b/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/resources/l10n.properties	Wed Aug 16 18:42:11 2017 -0700
@@ -174,10 +174,19 @@
 jshell.console.choice = Choice: \
 
 jshell.console.create.variable = Create variable
+jshell.console.create.method = Create method
 jshell.console.resolvable = \nThe identifier is resolvable in this context.
 jshell.console.no.candidate = \nNo candidate fully qualified names found to import.
 jshell.console.incomplete = \nResults may be incomplete; try again later for complete results.
+jshell.console.erroneous = \nIncomplete or erroneous. A single valid expression or statement must proceed Shift-<tab> m.
+jshell.console.exprstmt = \nA single valid expression or statement must proceed Shift-<tab> m.
+jshell.console.empty = \nEmpty entry. A single valid expression or statement must proceed Shift-<tab> m..
 
+jshell.fix.wrong.shortcut =\
+Unexpected character after Shift-Tab.\n\
+Use "i" for auto-import, "v" for variable creation, or "m" for method creation.\n\
+For more information see:\n\
+   /help shortcuts
 
 help.usage = \
 Usage:   jshell <options> <load files>\n\
@@ -549,6 +558,11 @@
         After a complete expression, hold down <shift> while pressing <tab>,\n\t\t\
         then release and press "v", the expression will be converted to\n\t\t\
         a variable declaration whose type is based on the type of the expression.\n\n\
+Shift-<tab> m\n\t\t\
+        After a complete expression or statement, hold down <shift> while pressing <tab>,\n\t\t\
+        then release and press "m", the expression or statement will be converted to\n\t\t\
+        a method declaration. If an expression, the return type is based on the type\n\t\t\
+        of the expression.\n\n\
 Shift-<tab> i\n\t\t\
         After an unresolvable identifier, hold down <shift> while pressing <tab>,\n\t\t\
         then release and press "i", and jshell will propose possible imports\n\t\t\
@@ -1021,7 +1035,3 @@
 /set format silent errorpre '|  '    \n\
 /set format silent errorpost '%n'    \n\
 /set format silent display ''    \n
-
-jshell.fix.wrong.shortcut =\
-Unexpected character after Shift-Tab.  Use "i" for auto-import or "v" for variable creation.  For more information see:\n\
-   /help shortcuts