author | rfield |
Mon, 25 Apr 2016 08:50:16 -0700 | |
changeset 37644 | 33cf53901cac |
parent 37389 | 9c137b83a8b8 |
child 37745 | 4b6b59f8e327 |
permissions | -rw-r--r-- |
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
1 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
2 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
4 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
10 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
15 |
# accompanied this code). |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
16 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
20 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
23 |
# questions. |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
24 |
# |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
25 |
|
36990 | 26 |
jshell.msg.welcome =\ |
27 |
Welcome to JShell -- Version {0}\n\ |
|
28 |
For an introduction type: /help intro\n |
|
29 |
jshell.err.opt.classpath.conflict = Conflicting -classpath option. |
|
30 |
jshell.err.opt.classpath.arg = Argument to -classpath missing. |
|
31 |
jshell.err.opt.startup.conflict = Conflicting -startup or -nostartup option. |
|
32 |
jshell.err.opt.unknown = Unknown option: {0} |
|
33 |
||
34 |
jshell.msg.terminated =\ |
|
35 |
State engine terminated.\n\ |
|
36 |
Restore definitions with: /reload restore |
|
37 |
||
38 |
jshell.msg.use.one.of = Use one of: {0} |
|
39 |
jshell.err.def.or.id.not.found = No definition or id found named: {0} |
|
40 |
jshell.msg.see.classes.etc = See /classes, /methods, /vars, or /list |
|
41 |
jshell.err.arg = Invalid ''{0}'' argument: {1} |
|
42 |
jshell.msg.see = See {0} for help. |
|
43 |
||
44 |
jshell.err.file.not.accessible = File ''{1}'' for ''{0}'' is not accessible: {2} |
|
37389 | 45 |
jshell.err.file.not.found = File ''{1}'' for ''{0}'' is not found. |
36990 | 46 |
jshell.err.file.exception = File ''{1}'' for ''{0}'' threw exception: {2} |
47 |
jshell.err.file.filename = ''{0}'' requires a filename argument. |
|
48 |
||
49 |
jshell.err.startup.unexpected.exception = Unexpected exception reading start-up: {0} |
|
50 |
jshell.err.unexpected.exception = Unexpected exception: {0} |
|
51 |
||
52 |
jshell.err.no.such.command.or.snippet.id = No such command or snippet id: {0} |
|
53 |
jshell.err.command.ambiguous = Command: ''{0}'' is ambiguous: {1} |
|
54 |
jshell.err.set.editor.arg = The ''/set editor'' command requires a path argument |
|
55 |
jshell.msg.set.editor.set = Editor set to: {0} |
|
37007
6023a9a9d58a
8153716: JShell tool: should warn when failed to launch editor
rfield
parents:
36990
diff
changeset
|
56 |
jshell.err.cant.launch.editor = Cannot launch editor -- unexpected exception: {0} |
6023a9a9d58a
8153716: JShell tool: should warn when failed to launch editor
rfield
parents:
36990
diff
changeset
|
57 |
jshell.msg.try.set.editor = Try /set editor to use external editor. |
36990 | 58 |
|
59 |
jshell.msg.try.list.without.args = Try ''/list'' without arguments. |
|
60 |
jshell.msg.no.active = There are no active definitions. |
|
61 |
||
62 |
jshell.msg.resetting = Resetting... |
|
63 |
jshell.msg.resetting.state = Resetting state. |
|
64 |
||
65 |
jshell.err.reload.no.previous = No previous history to restore |
|
66 |
jshell.err.reload.restarting.previous.state = Restarting and restoring from previous state. |
|
67 |
jshell.err.reload.restarting.state = Restarting and restoring state. |
|
68 |
||
69 |
jshell.msg.vars.not.active = (not-active) |
|
70 |
||
71 |
jshell.err.out.of.range = Out of range |
|
72 |
||
73 |
jshell.msg.error = Error: |
|
74 |
jshell.msg.warning = Warning: |
|
75 |
||
76 |
jshell.err.set.arg = The ''/set'' command requires a sub-command and arguments. See: ''/help /set'' |
|
77 |
jshell.err.set.ambiguous = Ambiguous sub-command argument to ''/set'': {0} |
|
78 |
||
79 |
jshell.err.classpath.arg = The /classpath command requires a path argument. |
|
80 |
jshell.msg.classpath = Path ''{0}'' added to classpath |
|
81 |
||
82 |
jshell.err.help.arg = No commands or subjects start with the provided argument: {0} |
|
83 |
jshell.msg.help.begin =\ |
|
84 |
Type a Java language expression, statement, or declaration.\n\ |
|
85 |
Or type one of the following commands:\n |
|
86 |
jshell.msg.help.subject =\n\ |
|
87 |
For more information type ''/help'' followed by the name of command or a subject.\n\ |
|
88 |
For example ''/help /list'' or ''/help intro''. Subjects:\n |
|
89 |
||
90 |
jshell.err.drop.arg =\ |
|
91 |
In the /drop argument, please specify an import, variable, method, or class to drop.\n\ |
|
92 |
Specify by id or name. Use /list to see ids. Use /reset to reset all state. |
|
37389 | 93 |
jshell.err.drop.not.active = The argument did not specify an active import, variable, method, or class to drop. |
36990 | 94 |
jshell.err.drop.ambiguous = The argument references more than one import, variable, method, or class. |
95 |
jshell.err.failed = Failed. |
|
96 |
jshell.msg.native.method = Native Method |
|
97 |
jshell.msg.unknown.source = Unknown Source |
|
98 |
jshell.msg.goodbye = Goodbye |
|
99 |
||
100 |
jshell.msg.help.for.help = Type /help for help. |
|
101 |
||
102 |
jshell.err.feedback.expected.new.feedback.mode = Expected new feedback mode -- {0} |
|
103 |
jshell.err.feedback.expected.mode.name = Expected a new feedback mode name. ''{0}'' is a known feedback mode -- {1} |
|
104 |
jshell.err.feedback.command.quiet = Specify either ''command'' or ''quiet'' -- {0} |
|
105 |
jshell.err.feedback.expected.field = Expected field name missing -- {0} |
|
106 |
jshell.err.feedback.expected.mode = Expected a feedback mode -- {0} |
|
107 |
jshell.err.feedback.does.not.match.mode = Does not match any current feedback mode: {0} -- {1} |
|
108 |
jshell.err.feedback.ambiguous.mode = Matches more then one current feedback mode: {0} -- {1} |
|
109 |
jshell.err.feedback.expected.format = Expected format missing -- {0} |
|
110 |
jshell.err.feedback.must.be.quoted = Format ''{0}'' must be quoted -- {1} |
|
111 |
jshell.err.feedback.not.a.valid.selector = Not a valid selector ''{0}'' in ''{1}'' -- {2} |
|
112 |
jshell.err.feedback.multiple.sections = Selector kind in multiple sections of selector list ''{0}'' in ''{1}'' -- {2} |
|
113 |
jshell.err.feedback.different.selector.kinds = Different selector kinds in same sections of selector list ''{0}'' in ''{1}'' -- {2} |
|
114 |
||
115 |
jshell.msg.feedback.new.mode = Created new feedback mode: {0} |
|
116 |
jshell.msg.feedback.mode = Feedback mode: {0} |
|
117 |
jshell.msg.feedback.mode.following = The feedback mode should be one of the following: |
|
118 |
||
119 |
jshell.console.see.more = <press tab to see more> |
|
120 |
jshell.console.do.nothing = Do nothing |
|
121 |
jshell.console.choice = Choice: \ |
|
122 |
||
123 |
jshell.console.create.variable = Create variable |
|
124 |
jshell.console.resolvable = \nThe identifier is resolvable in this context. |
|
125 |
jshell.console.no.candidate = \nNo candidate fully qualified names found to import. |
|
126 |
jshell.console.incomplete = \nResults may be incomplete; try again later for complete results. |
|
127 |
||
128 |
||
129 |
help.usage = \ |
|
130 |
Usage: jshell <options> <load files>\n\ |
|
131 |
where possible options include:\n\t\ |
|
132 |
-classpath <path> Specify where to find user class files\n\t\ |
|
133 |
-cp <path> Specify where to find user class files\n\t\ |
|
134 |
-startup <file> One run replacement for the start-up definitions\n\t\ |
|
135 |
-nostartup Do not run the start-up definitions\n\t\ |
|
136 |
-help Print a synopsis of standard options\n\t\ |
|
137 |
-version Version information\n |
|
138 |
||
139 |
help.list.summary = list the source you have typed |
|
140 |
help.list.args = [all|start|<name or id>] |
|
141 |
help.list =\ |
|
142 |
Show the source of snippets, prefaced with the snippet id.\n\ |
|
143 |
\n\ |
|
144 |
/list\n\t\ |
|
145 |
List the currently active snippets of code that you typed or read with /open\n\n\ |
|
146 |
/list start\n\t\ |
|
147 |
List the automatically evaluated start-up snippets\n\n\ |
|
148 |
/list all\n\t\ |
|
149 |
List all snippets including failed, overwritten, dropped, and start-up\n\n\ |
|
150 |
/list <name>\n\t\ |
|
151 |
List snippets with the specified name (preference for active snippets)\n\n\ |
|
152 |
/list <id>\n\t\ |
|
153 |
List the snippet with the specified snippet id |
|
154 |
||
155 |
help.edit.summary = edit a source entry referenced by name or id |
|
156 |
help.edit.args = <name or id> |
|
157 |
help.edit =\ |
|
158 |
Edit a snippet or snippets of source in an external editor.\n\ |
|
159 |
The editor to use is set with /set editor.\n\ |
|
160 |
If no editor has been set, a simple editor will be launched.\n\ |
|
161 |
\n\ |
|
162 |
/edit <name>\n\t\ |
|
163 |
Edit the snippet or snippets with the specified name (preference for active snippets)\n\n\ |
|
164 |
/edit <id>\n\t\ |
|
165 |
Edit the snippet with the specified snippet id\n\n\ |
|
166 |
/edit\n\t\ |
|
167 |
Edit the currently active snippets of code that you typed or read with /open |
|
168 |
||
169 |
help.drop.summary = delete a source entry referenced by name or id |
|
170 |
help.drop.args = <name or id> |
|
171 |
help.drop =\ |
|
172 |
Drop a snippet -- making it inactive.\n\ |
|
173 |
\n\ |
|
174 |
/drop <name>\n\t\ |
|
175 |
Drop the snippet with the specified name\n\n\ |
|
176 |
/drop <id>\n\t\ |
|
177 |
Drop the snippet with the specified snippet id |
|
178 |
||
179 |
help.save.summary = Save snippet source to a file. |
|
180 |
help.save.args = [all|history|start] <file> |
|
181 |
help.save =\ |
|
182 |
Save the specified snippets and/or commands to the specified file.\n\ |
|
183 |
\n\ |
|
184 |
/save <file>\n\t\ |
|
185 |
Save the source of current active snippets to the file.\n\n\ |
|
186 |
/save all <file>\n\t\ |
|
187 |
Save the source of all snippets to the file.\n\t\ |
|
188 |
Includes source including overwritten, failed, and start-up code.\n\n\ |
|
189 |
/save history <file>\n\t\ |
|
190 |
Save the sequential history of all commands and snippets entered since jshell was launched.\n\n\ |
|
191 |
/save start <file>\n\t\ |
|
192 |
Save the default start-up definitions to the file. |
|
193 |
||
194 |
help.open.summary = open a file as source input |
|
195 |
help.open.args = <file> |
|
196 |
help.open =\ |
|
197 |
Open a file and read its contents as snippets and commands.\n\ |
|
198 |
\n\ |
|
199 |
/open <file>\n\t\ |
|
200 |
Read the specified file as jshell input. |
|
201 |
||
202 |
help.vars.summary = list the declared variables and their values |
|
203 |
help.vars.args = |
|
204 |
help.vars =\ |
|
205 |
List the type, name, and value of the current active jshell variables. |
|
206 |
||
207 |
help.methods.summary = list the declared methods and their signatures |
|
208 |
help.methods.args = |
|
209 |
help.methods =\ |
|
210 |
List the name, parameter types, and return type of the current active jshell methods. |
|
211 |
||
212 |
help.classes.summary = list the declared classes |
|
213 |
help.classes.args = |
|
214 |
help.classes =\ |
|
215 |
List the current active jshell classes, interfaces, and enums. |
|
216 |
||
217 |
help.imports.summary = list the imported items |
|
218 |
help.imports.args = |
|
219 |
help.imports =\ |
|
220 |
List the current active jshell imports. |
|
221 |
||
222 |
help.exit.summary = exit jshell |
|
223 |
help.exit.args = |
|
224 |
help.exit =\ |
|
225 |
Leave the jshell tool. No work is saved.\n\ |
|
226 |
Save any work before using this command |
|
227 |
||
228 |
help.reset.summary = reset jshell |
|
229 |
help.reset.args = |
|
230 |
help.reset =\ |
|
231 |
Reset the jshell tool code and execution state:\n\t\ |
|
232 |
* All entered code is lost.\n\t\ |
|
233 |
* Start-up code is re-executed.\n\t\ |
|
234 |
* The execution state is restarted.\n\t\ |
|
235 |
* The classpath is cleared.\n\ |
|
236 |
Tool settings are maintained, as set with: /set ...\n\ |
|
237 |
Save any work before using this command |
|
238 |
||
239 |
help.reload.summary = reset and replay relevant history -- current or previous (restore) |
|
240 |
help.reload.args = [restore] [quiet] |
|
241 |
help.reload =\ |
|
242 |
Reset the jshell tool code and execution state then replay each\n\ |
|
243 |
jshell valid command and valid snippet in the order they were entered.\n\ |
|
244 |
\n\ |
|
245 |
/reload\n\t\ |
|
246 |
Reset and replay the valid history since jshell was entered, or\n\t\ |
|
247 |
a /reset, or /reload command was executed -- whichever is most\n\t\ |
|
248 |
recent.\n\n\ |
|
249 |
/reload restore\n\t\ |
|
250 |
Reset and replay the valid history between the previous and most\n\t\ |
|
251 |
recent time that jshell was entered, or a /reset, or /reload\n\t\ |
|
252 |
command was executed. This can thus be used to restore a previous\n\t\ |
|
253 |
jshell tool sesson.\n\n\ |
|
254 |
/reload [restore] quiet\n\t\ |
|
255 |
With the 'quiet' argument the replay is not shown. Errors will display. |
|
256 |
||
257 |
help.classpath.summary = add a path to the classpath |
|
258 |
help.classpath.args = <path> |
|
259 |
help.classpath =\ |
|
260 |
Append a additional path to the classpath. |
|
261 |
||
262 |
help.history.summary = history of what you have typed |
|
263 |
help.history.args = |
|
264 |
help.history =\ |
|
265 |
Display the history of snippet and command input since this jshell was launched. |
|
266 |
||
267 |
help.debug.summary = toggle debugging of the jshell |
|
268 |
help.debug.args = [0][r][g][f][c][d][e] |
|
269 |
help.debug =\ |
|
270 |
Display debugging information for the jshell implementation.\n\ |
|
271 |
0: Debugging off\n\ |
|
272 |
r: Tool level debugging on\n\ |
|
273 |
g: General debugging on\n\ |
|
274 |
f: File manager debugging on\n\ |
|
275 |
c: Completion analysis debugging on\n\ |
|
276 |
d: Dependency debugging on\n\ |
|
277 |
e: Event debugging on |
|
278 |
||
279 |
help.help.summary = get information about jshell |
|
280 |
help.help.args = [<command>|<subject>] |
|
281 |
help.help =\ |
|
282 |
Display information about jshell.\n\ |
|
283 |
/help\n\t\ |
|
284 |
List the jshell commands and help subjects.\n\n\ |
|
285 |
/help <command>\n\t\ |
|
286 |
Display information about the specified comand. The slash must be included.\n\t\ |
|
287 |
Only the first few letters of the command are needed -- if more than one\n\t\ |
|
288 |
each will be displayed. Example: /help /li\n\n\ |
|
289 |
/help <subject>\n\t\ |
|
290 |
Display information about the specified help subject. Example: /help intro |
|
291 |
||
292 |
help.set.summary = set jshell configuration information |
|
293 |
help.set.args = editor|start|feedback|newmode|prompt|format ... |
|
294 |
help.set =\ |
|
295 |
Set jshell configuration information, including:\n\ |
|
296 |
the external editor to use, the start-up definitions to use, a new feedback mode,\n\ |
|
297 |
the command prompt, the feedback mode to use, or the format of output.\n\ |
|
298 |
\n\ |
|
299 |
/set editor <command> <optional-arg>...\n\t\ |
|
300 |
Specify the command to launch for the /edit command.\n\t\ |
|
301 |
The <command> is an operating system dependent string.\n\n\ |
|
302 |
/set start <file>\n\t\ |
|
303 |
The contents of the specified <file> become the default start-up snippets and commands.\n\n\ |
|
304 |
/set feedback <mode>\n\t\ |
|
305 |
Set the feedback mode describing displayed feedback for entered snippets and commands.\n\n\ |
|
306 |
/set newmode <new-mode> [command|quiet [<old-mode>]]\n\t\ |
|
307 |
Create a user-defined feedback mode, optionally copying from an existing mode.\n\n\ |
|
308 |
/set prompt <mode> "<prompt>" "<continuation-prompt>"\n\t\ |
|
309 |
Set the displayed prompts for a given feedback mode.\n\n\ |
|
310 |
/set format <mode> <field> "<format>" <selector>...\n\t\ |
|
311 |
Configure a feedback mode by setting the format of a field when the selector matchs.\n\n\ |
|
312 |
To get more information about one of these forms, use /help with the form specified.\n\ |
|
313 |
For example: /help /set format |
|
314 |
||
315 |
help.quest.summary = get information about jshell |
|
316 |
help.quest.args = [<command>|<subject>] |
|
317 |
help.quest =\ |
|
318 |
Display information about jshell (abbreviation for /help).\n\ |
|
319 |
/?\n\t\ |
|
320 |
Display list of commands and help subjects.\n\ |
|
321 |
/? <command>\n\t\ |
|
322 |
Display information about the specified comand. The slash must be included.\n\t\ |
|
323 |
Only the first few letters of the command are needed -- if more than one\n\t\ |
|
324 |
match, each will be displayed. Example: /? /li\n\ |
|
325 |
/? <subject>\n\t\ |
|
326 |
Display information about the specified help subject. Example: /? intro |
|
327 |
||
328 |
help.bang.summary = re-run last snippet |
|
329 |
help.bang.args = |
|
330 |
help.bang =\ |
|
331 |
Reevaluate the most recently entered snippet. |
|
332 |
||
333 |
help.id.summary = re-run snippet by id |
|
334 |
help.id.args = |
|
335 |
help.id =\ |
|
336 |
Reevaluate the snippet specified by the id. |
|
337 |
||
338 |
help.previous.summary = re-run n-th previous snippet |
|
339 |
help.previous.args = |
|
340 |
help.previous =\ |
|
341 |
Reevaluate the n-th most recently entered snippet. |
|
342 |
||
343 |
help.intro.summary = an introduction to the jshell tool |
|
344 |
help.intro =\ |
|
345 |
The jshell tool allows you to execute Java code, getting immediate results.\n\ |
|
346 |
You can enter a Java definition (variable, method, class, etc), like: int x = 8\n\ |
|
347 |
or a Java expression, like: x + x\n\ |
|
348 |
or a Java statement or import.\n\ |
|
349 |
These little chunks of Java code are called 'snippets'.\n\ |
|
350 |
\n\ |
|
351 |
There are also jshell commands that allow you to understand and\n\ |
|
352 |
control what you are doing, like: /list\n\ |
|
353 |
\n\ |
|
354 |
For a list of commands: /help |
|
355 |
||
356 |
help.shortcuts.summary = a description of shortcuts |
|
357 |
help.shortcuts =\ |
|
358 |
Supported shortcuts include:\n\ |
|
359 |
\n\ |
|
360 |
<tab>\n\t\t\ |
|
361 |
After entering the first few letters of a Java identifier,\n\t\t\ |
|
362 |
a jshell command, or, in some cases, a jshell command argument,\n\t\t\ |
|
363 |
press the <tab> key to complete the input.\n\t\t\ |
|
364 |
If there is more than one completion, show possible completions.\n\n\ |
|
365 |
Shift-<tab>\n\t\t\ |
|
366 |
After the name and open parenthesis of a method or constructor invocation,\n\t\t\ |
|
367 |
hold the <shift> key and press the <tab> to see a synopsis of all\n\t\t\ |
|
368 |
matching methods/constructors.\n\n\ |
|
369 |
<fix-shortcut> v\n\t\t\ |
|
370 |
After a complete expression, press "<fix-shortcut> v" to introduce a new variable\n\t\t\ |
|
371 |
whose type is based on the type of the expression.\n\t\t\ |
|
372 |
The "<fix-shortcut>" is either Alt-F1 or Alt-Enter, depending on the platform.\n\n\ |
|
373 |
<fix-shortcut> i\n\t\t\ |
|
374 |
After an unresolvable identifier, press "<fix-shortcut> i" and jshell will propose\n\t\t\ |
|
375 |
possible fully qualified names based on the content of the specified classpath.\n\t\t\ |
|
376 |
The "<fix-shortcut>" is either Alt-F1 or Alt-Enter, depending on the platform. |
|
377 |
||
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
378 |
help.set.format = \ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
379 |
Set the format for reporting a snippet event.\n\ |
36990 | 380 |
\n\t\ |
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
381 |
/set format <mode> <field> "<format>" <selector>...\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
382 |
\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
383 |
Where <mode> is the name of a previously defined feedback mode -- see '/help /set newmode'.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
384 |
Where <field> is the name of context-specific format to define.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
385 |
Where <format> is a quoted string which will be the value of the field if one of\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
386 |
the selectors matches (or there are no selectors). When the format is used,\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
387 |
field names enclosed in braces are replaced with the value of the field at that\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
388 |
time. These fields may have been previously defined with this command or may be\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
389 |
one of these predefined fields specific to the context:\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
390 |
{name} == The name, e.g.: the variable name, ...\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
391 |
{type} == The type name. The type of a variable or expression, the\n\t\t\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
392 |
parameter types of a method\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
393 |
{value} == The result value of an expression or variable initialization\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
394 |
{unresolved} == The list of unresolved references\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
395 |
{errors} == The list of recoverable errors (during the processing of the\n\t\t\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
396 |
"display" field only)\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
397 |
{err} == An unformatted error line (during the processing of the\n\t\t\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
398 |
"errorline" field only)\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
399 |
The following fields are accessed by the tool to determine the displayed feedback:\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
400 |
{display} == The displayed message for a snippet event\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
401 |
{errorline} == The format of one error line within the "errors" field\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
402 |
{pre} == The feedback prefix (begins command feedback)\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
403 |
{post} == The feedback postfix (ends command feedback)\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
404 |
{errorpre} == The error prefix (begins error feedback)\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
405 |
{errorpost} == The error postfix (ends error feedback)\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
406 |
These fields have default settings (which may be overwritten).\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
407 |
Where <selector> is the context in which the format is applied.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
408 |
The structure of selector is a hyphen separated list of selector kind lists.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
409 |
A selector kind list is a comma separated list of values of one selector kind.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
410 |
A selector matches if each selector kind list matches; A selector kind list\n\ |
36990 | 411 |
matches if one of the values matches.\n\n\ |
412 |
The case selector kind describes the kind of snippet. The values are:\n\t\ |
|
413 |
import -- import declaration\n\t\ |
|
414 |
class -- class declaration\n\t\ |
|
415 |
interface -- interface declaration\n\t\ |
|
416 |
enum -- enum declaration\n\t\ |
|
417 |
annotation -- annotation interface declaration\n\t\ |
|
418 |
method -- method declaration -- note: {type}==parameter-types\n\t\ |
|
419 |
vardecl -- variable declaration without init\n\t\ |
|
420 |
varinit -- variable declaration with init\n\t\ |
|
421 |
expression -- expression -- note: {name}==scratch-variable-name\n\t\ |
|
422 |
varvalue -- variable value expression\n\t\ |
|
423 |
assignment -- assign variable\n\t\ |
|
424 |
statement -- statement\n\ |
|
425 |
The action selector kind describes what happened to the snippet. The values are:\n\t\ |
|
426 |
added -- snippet has been added\n\t\ |
|
427 |
modified -- an existing snippet has been modified\n\t\ |
|
428 |
replaced -- an existing snippet has been replaced with a new snippet\n\t\ |
|
429 |
overwrote -- an existing snippet has been overwritten\n\t\ |
|
430 |
dropped -- snippet has been dropped\n\t\ |
|
431 |
used -- snippet was used when it cannot be\n\ |
|
432 |
The when-did-it-occur selector kind describes if this is a direct or indirect action. The values are:\n\t\ |
|
433 |
primary -- the entered snippet\n\t\ |
|
434 |
update -- an update to a dependent snippet\n\ |
|
435 |
The resolution-state selector kind describes the state of resolution/definition of the snippet. The values are:\n\t\ |
|
436 |
ok -- resolved correctly\n\t\ |
|
437 |
defined -- defined despite recoverably unresolved references\n\t\ |
|
438 |
notdefined -- not defined because of recoverably unresolved references\n\ |
|
439 |
The unresolved-count selector kind describes the number of unresolved references. The values are:\n\t\ |
|
440 |
unresolved0 -- no names are unresolved\n\t\ |
|
441 |
unresolved1 -- one name is unresolved\n\t\ |
|
442 |
unresolved2 -- two or more names are unresolved\n\ |
|
443 |
The errors-count selector kind describes the number of errors. The values are:\n\t\ |
|
444 |
error0 -- no errors\n\t\ |
|
445 |
error1 -- one error\n\t\ |
|
446 |
error2 -- two or more errors\n\n\ |
|
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
447 |
Examples:\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
448 |
/set format myformat action 'Created' added-primary\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
449 |
/set format myformat action 'Update replaced' replaced-update\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
450 |
/set format myformat display '{pre}{action} class {name}{post}' class-ok\n\t\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
451 |
/set format myformat display '{pre}{action} variable {name}, reset to null{post}' replaced-vardecl,varinit-ok-update\n\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
452 |
Note that subsequent selectors for a field may overwrite some or all of previous used selectors -- last one wins\n |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
453 |
|
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
454 |
help.set.feedback = \ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
455 |
Set the feedback mode describing displayed feedback for entered snippets and commands.\n\ |
36990 | 456 |
\n\t\ |
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
457 |
/set feedback <mode>\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
458 |
\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
459 |
Where <mode> is the name of a previously defined feedback mode.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
460 |
You may use just enough letters to make it unique.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
461 |
User-defined modes can be added, see '/help /set newmode'\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
462 |
Currently defined feedback modes:\n |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
463 |
|
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
464 |
help.set.newmode = \ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
465 |
Create a user-defined feedback mode, optionally copying from an existing mode.\n\ |
36990 | 466 |
\n\t\ |
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
467 |
/set newmode <new-mode> [command|quiet [<old-mode>]]\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
468 |
\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
469 |
Where <new-mode> is the name of a mode you wish to create.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
470 |
Where <old-mode> is the name of a previously defined feedback mode.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
471 |
If <old-mode> is present, its settings are copied to the new mode.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
472 |
'command' vs 'quiet' determines if informative/verifying command feedback is displayed.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
473 |
\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
474 |
Once the new mode is created, use '/set format' and '/set prompt' to configure it.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
475 |
Use '/set feedback' to use the new mode.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
476 |
|
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
477 |
help.set.prompt = \ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
478 |
Set the prompts. Both the normal prompt and the continuation-prompt must be set.\n\ |
36990 | 479 |
\n\t\ |
480 |
/set prompt <mode> \"<prompt>\" \"<continuation-prompt>\"\n\ |
|
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
481 |
\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
482 |
Where <mode> is the name of a previously defined feedback mode.\n\ |
36990 | 483 |
Where <prompt> and <continuation-prompt> are quoted strings printed as input prompts;\n\ |
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
484 |
Both may optionally contain '%s' which will be substituted with the next snippet id --\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
485 |
note that what is entered may not be assigned that id, for example it may be an error or command.\n\ |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
486 |
The continuation-prompt is used on the second and subsequent lines of a multi-line snippet.\n |
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
487 |
|
36990 | 488 |
help.set.editor =\ |
489 |
Specify the command to launch for the /edit command.\n\ |
|
490 |
\n\t\ |
|
491 |
/set editor <command> <optional-arg>...\n\ |
|
492 |
\n\ |
|
493 |
The <command> is an operating system dependent string.\n\ |
|
494 |
The <command> may include space-separated arguments (such as flags) -- <optional-arg>....\n\ |
|
495 |
When /edit is used, the temporary file to edit will be appended as the last argument. |
|
496 |
||
497 |
help.set.start =\ |
|
498 |
Set the start-up configuration -- a sequence of snippets and commands read at start-up.\n\ |
|
499 |
\n\t\ |
|
500 |
/set start <file>\n\ |
|
501 |
\n\ |
|
502 |
The contents of the specified <file> become the default start-up snippets and commands --\n\ |
|
503 |
which are run when the jshell tool is started or reset. |
|
504 |
||
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
505 |
startup.feedback = \ |
37389 | 506 |
/set newmode verbose command \n\ |
507 |
\n\ |
|
508 |
/set prompt verbose '\\njshell> ' ' ...> ' \n\ |
|
509 |
\n\ |
|
510 |
/set format verbose pre '| ' \n\ |
|
511 |
/set format verbose post '%n' \n\ |
|
512 |
/set format verbose errorpre '| ' \n\ |
|
513 |
/set format verbose errorpost '%n' \n\ |
|
514 |
\n\ |
|
37644
33cf53901cac
8154485: JShell: infrastructure for multi-Snippet class wrappers
rfield
parents:
37389
diff
changeset
|
515 |
/set format verbose errorline '{post}{pre} {err}' \n\ |
37389 | 516 |
\n\ |
517 |
/set format verbose action 'created' added-primary \n\ |
|
518 |
/set format verbose action 'modified' modified-primary \n\ |
|
519 |
/set format verbose action 'replaced' replaced-primary \n\ |
|
520 |
/set format verbose action 'overwrote' overwrote-primary \n\ |
|
521 |
/set format verbose action 'dropped' dropped-primary \n\ |
|
522 |
/set format verbose action ' update created' added-update \n\ |
|
523 |
/set format verbose action ' update modified' modified-update \n\ |
|
524 |
/set format verbose action ' update replaced' replaced-update \n\ |
|
525 |
/set format verbose action ' update overwrote' overwrote-update \n\ |
|
526 |
/set format verbose action ' update dropped' dropped-update \n\ |
|
527 |
\n\ |
|
528 |
/set format verbose until ', however, it cannot be instanciated or its methods invoked until' defined-class-primary \n\ |
|
529 |
/set format verbose until ', however, its methods cannot be invoked until' defined-interface-primary \n\ |
|
530 |
/set format verbose until ', however, it cannot be used until' defined-enum,annotation-primary \n\ |
|
531 |
/set format verbose until ', however, it cannot be invoked until' defined-method-primary \n\ |
|
532 |
/set format verbose until ', however, it cannot be referenced until' notdefined-primary \n\ |
|
533 |
/set format verbose until ' which cannot be instanciated or its methods invoked until' defined-class-update \n\ |
|
534 |
/set format verbose until ' whose methods cannot be invoked until' defined-interface-update \n\ |
|
535 |
/set format verbose until ' which cannot be invoked until' defined-method-update \n\ |
|
536 |
/set format verbose until ' which cannot be referenced until' notdefined-update \n\ |
|
537 |
\n\ |
|
538 |
/set format verbose unrerr '{unresolved} is declared' unresolved1-error0 \n\ |
|
539 |
/set format verbose unrerr '{unresolved} are declared' unresolved2-error0 \n\ |
|
540 |
/set format verbose unrerr ' this error is corrected: {errors}' unresolved0-error1 \n\ |
|
541 |
/set format verbose unrerr '{unresolved} is declared and this error is corrected: {errors}' unresolved1-error1 \n\ |
|
542 |
/set format verbose unrerr '{unresolved} are declared and this error is corrected: {errors}' unresolved2-error1 \n\ |
|
543 |
/set format verbose unrerr ' these errors are corrected: {errors}' unresolved0-error2 \n\ |
|
544 |
/set format verbose unrerr '{unresolved} is declared and these errors are corrected: {errors}' unresolved1-error2 \n\ |
|
545 |
/set format verbose unrerr '{unresolved} are declared and these errors are corrected: {errors}' unresolved2-error2 \n\ |
|
546 |
\n\ |
|
547 |
/set format verbose resolve '{until}{unrerr}' added,modified,replaced,used \n\ |
|
548 |
\n\ |
|
549 |
/set format verbose typeKind 'class' class \n\ |
|
550 |
/set format verbose typeKind 'interface' interface \n\ |
|
551 |
/set format verbose typeKind 'enum' enum \n\ |
|
552 |
/set format verbose typeKind 'annotation interface' annotation \n\ |
|
553 |
\n\ |
|
554 |
/set format verbose result '{name} ==> {value}{post}' added,modified,replaced-ok-primary \n\ |
|
555 |
\n\ |
|
556 |
/set format verbose display '{result}{pre}created scratch variable {name} : {type}{post}' expression-primary \n\ |
|
557 |
/set format verbose display '{result}{pre}value of {name} : {type}{post}' varvalue-primary \n\ |
|
558 |
/set format verbose display '{result}{pre}assigned to {name} : {type}{post}' assignment-primary \n\ |
|
559 |
/set format verbose display '{result}{pre}{action} variable {name} : {type}{resolve}{post}' varinit,vardecl \n\ |
|
560 |
/set format verbose display '{pre}{action} variable {name}{resolve}{post}' vardecl,varinit-notdefined \n\ |
|
561 |
/set format verbose display '{pre}{action} variable {name}{post}' dropped-vardecl,varinit \n\ |
|
562 |
/set format verbose display '{pre}{action} variable {name}, reset to null{post}' replaced-vardecl,varinit-ok-update \n\ |
|
563 |
\n\ |
|
564 |
/set format verbose display '{pre}{action} {typeKind} {name}{resolve}{post}' class,interface,enum,annotation \n\ |
|
565 |
/set format verbose display '{pre}{action} method {name}({type}){resolve}{post}' method \n\ |
|
566 |
\n\ |
|
567 |
/set format verbose display '{pre}attempted to use {typeKind} {name}{resolve}{post}' used-class,interface,enum,annotation \n\ |
|
568 |
/set format verbose display '{pre}attempted to call method {name}({type}){resolve}{post}' used-method \n\ |
|
569 |
\n\ |
|
570 |
/set newmode normal command verbose \n\ |
|
571 |
/set format normal display '' added,modified,replaced,overwrote,dropped-update \n\ |
|
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
572 |
/set format normal display '{pre}{action} variable {name}, reset to null{post}' replaced-vardecl,varinit-ok-update \n\ |
37389 | 573 |
/set format normal display '{result}' added,modified,replaced-expression,varvalue,assignment,varinit,vardecl-ok-primary \n\ |
574 |
/set newmode concise quiet normal \n\ |
|
575 |
\n\ |
|
576 |
/set prompt concise 'jshell> ' ' ...> ' \n\ |
|
577 |
\n\ |
|
578 |
/set format concise display '' class,interface,enum,annotation,method,assignment,varinit,vardecl-ok \n\ |
|
579 |
\n\ |
|
36718
bf40906bf49d
8151755: jshell tool: properly cover resolution issues in output configuration
rfield
parents:
diff
changeset
|
580 |
/set feedback normal \n\ |
37389 | 581 |
\n\ |
582 |
/set newmode silent quiet \n\ |
|
583 |
/set prompt silent '-> ' '>> ' \n\ |
|
584 |
/set format silent pre '| ' \n\ |
|
585 |
/set format silent post '%n' \n\ |
|
586 |
/set format silent errorpre '| ' \n\ |
|
587 |
/set format silent errorpost '%n' \n\ |
|
588 |
/set format silent display '' \n |