提交 885bf602 编写于 作者: W weijun

7025699: Policy Tool is not accessible by keyboard

Reviewed-by: alexp, weijun
Contributed-by: NLeif Samuelsson <leif.samuelsson@oracle.com>
上级 e864d64d
...@@ -44,16 +44,19 @@ public class Resources extends java.util.ListResourceBundle { ...@@ -44,16 +44,19 @@ public class Resources extends java.util.ListResourceBundle {
{"Usage.policytool.options.", "Usage: policytool [options]"}, {"Usage.policytool.options.", "Usage: policytool [options]"},
{".file.file.policy.file.location", {".file.file.policy.file.location",
" [-file <file>] policy file location"}, " [-file <file>] policy file location"},
{"New", "New"}, {"New", "&New"},
{"Open", "Open"}, {"New.accelerator", "control N"},
{"Save", "Save"}, {"Open", "&Open..."},
{"Save.As", "Save As"}, {"Open.accelerator", "control O"},
{"View.Warning.Log", "View Warning Log"}, {"Save", "&Save"},
{"Exit", "Exit"}, {"Save.accelerator", "control S"},
{"Add.Policy.Entry", "Add Policy Entry"}, {"Save.As", "Save &As..."},
{"Edit.Policy.Entry", "Edit Policy Entry"}, {"View.Warning.Log", "View &Warning Log"},
{"Remove.Policy.Entry", "Remove Policy Entry"}, {"Exit", "E&xit"},
{"Edit", "Edit"}, {"Add.Policy.Entry", "&Add Policy Entry"},
{"Edit.Policy.Entry", "&Edit Policy Entry"},
{"Remove.Policy.Entry", "&Remove Policy Entry"},
{"Edit", "&Edit"},
{"Retain", "Retain"}, {"Retain", "Retain"},
{"Warning.File.name.may.include.escaped.backslash.characters.It.is.not.necessary.to.escape.backslash.characters.the.tool.escapes", {"Warning.File.name.may.include.escaped.backslash.characters.It.is.not.necessary.to.escape.backslash.characters.the.tool.escapes",
...@@ -66,8 +69,8 @@ public class Resources extends java.util.ListResourceBundle { ...@@ -66,8 +69,8 @@ public class Resources extends java.util.ListResourceBundle {
{"Add.Public.Key.Alias", "Add Public Key Alias"}, {"Add.Public.Key.Alias", "Add Public Key Alias"},
{"Remove.Public.Key.Alias", "Remove Public Key Alias"}, {"Remove.Public.Key.Alias", "Remove Public Key Alias"},
{"File", "File"}, {"File", "&File"},
{"KeyStore", "KeyStore"}, {"KeyStore", "&KeyStore"},
{"Policy.File.", "Policy File:"}, {"Policy.File.", "Policy File:"},
{"Could.not.open.policy.file.policyFile.e.toString.", {"Could.not.open.policy.file.policyFile.e.toString.",
"Could not open policy file: {0}: {1}"}, "Could not open policy file: {0}: {1}"},
...@@ -89,20 +92,25 @@ public class Resources extends java.util.ListResourceBundle { ...@@ -89,20 +92,25 @@ public class Resources extends java.util.ListResourceBundle {
{"OK.to.overwrite.existing.file.filename.", {"OK.to.overwrite.existing.file.filename.",
"OK to overwrite existing file {0}?"}, "OK to overwrite existing file {0}?"},
{"Cancel", "Cancel"}, {"Cancel", "Cancel"},
{"CodeBase.", "CodeBase:"},
{"SignedBy.", "SignedBy:"}, // Policy Entry Dialog
{"Add.Principal", "Add Principal"}, {"CodeBase.", "&CodeBase:"},
{"Edit.Principal", "Edit Principal"}, {"SignedBy.", "&SignedBy:"},
{"Remove.Principal", "Remove Principal"}, {"Add.Principal", "&Add Principal"},
{"Principals.", "Principals:"}, {"Edit.Principal", "&Edit Principal"},
{".Add.Permission", " Add Permission"}, {"Remove.Principal", "&Remove Principal"},
{".Edit.Permission", " Edit Permission"}, {"Principals.", "&Principals:"},
{"Remove.Permission", "Remove Permission"}, {".Add.Permission", " A&dd Permission"},
{".Edit.Permission", " Ed&it Permission"},
{"Remove.Permission", "Re&move Permission"},
{"Done", "Done"}, {"Done", "Done"},
{"KeyStore.URL.", "KeyStore URL:"},
{"KeyStore.Type.", "KeyStore Type:"}, // KeyStore Edit Dialog
{"KeyStore.Provider.", "KeyStore Provider:"}, {"KeyStore.URL.", "KeyStore &URL:"},
{"KeyStore.Password.URL.", "KeyStore Password URL:"}, {"KeyStore.Type.", "KeyStore &Type:"},
{"KeyStore.Provider.", "KeyStore &Provider:"},
{"KeyStore.Password.URL.", "KeyStore Pass&word URL:"},
{"Principals", "Principals"}, {"Principals", "Principals"},
{".Edit.Principal.", " Edit Principal:"}, {".Edit.Principal.", " Edit Principal:"},
{".Add.New.Principal.", " Add New Principal:"}, {".Add.New.Principal.", " Add New Principal:"},
...@@ -122,8 +130,8 @@ public class Resources extends java.util.ListResourceBundle { ...@@ -122,8 +130,8 @@ public class Resources extends java.util.ListResourceBundle {
"Policy successfully written to {0}"}, "Policy successfully written to {0}"},
{"null.filename", "null filename"}, {"null.filename", "null filename"},
{"Save.changes.", "Save changes?"}, {"Save.changes.", "Save changes?"},
{"Yes", "Yes"}, {"Yes", "&Yes"},
{"No", "No"}, {"No", "&No"},
{"Policy.Entry", "Policy Entry"}, {"Policy.Entry", "Policy Entry"},
{"Save.Changes", "Save Changes"}, {"Save.Changes", "Save Changes"},
{"No.Policy.Entry.selected", "No Policy Entry selected"}, {"No.Policy.Entry.selected", "No Policy Entry selected"},
......
...@@ -23,12 +23,10 @@ reading these instructions.<br><br> ...@@ -23,12 +23,10 @@ reading these instructions.<br><br>
Warning: Principal name 'myalias' specified without a Principal class. Warning: Principal name 'myalias' specified without a Principal class.
<li> Click on "OK" <li> Click on "OK"
<li> Open the "File" menu, and "Save As" <li> Open the "File" menu, and "Save As"
<li> Enter "p1" as the file name <li> Save using the file name "p1"
<li> Click on "OK" <li> Click on "OK" in the status message window
<li> Click on "OK" in the message window
<li> Open the "File" menu and "Open Policy" <li> Open the "File" menu and "Open Policy"
<li> Enter "p1" as the file name <li> Open the file named "p1"
<li> Click on "OK"
<li> If the file opens successfully, the test passed. <li> If the file opens successfully, the test passed.
Otherwise, the test failed. Otherwise, the test failed.
</ol> </ol>
......
...@@ -9,8 +9,9 @@ reading these instructions.<br><br> ...@@ -9,8 +9,9 @@ reading these instructions.<br><br>
First, policytool will be invoked.<br><br> First, policytool will be invoked.<br><br>
On Windows, if PolicyTool tries to open the default Policy File<br> Pull down 'File' menu and select 'View Warning Log', which shows that
and it has the File separator character pointing the wrong way, like:<br><br> the default Policy File is not found. On Windows, if the file name
has the File separator character pointing the wrong way, like:<br><br>
C:\windows/java.policy<br><br> C:\windows/java.policy<br><br>
......
...@@ -12,6 +12,7 @@ First, policytool will be invoked.<br><br> ...@@ -12,6 +12,7 @@ First, policytool will be invoked.<br><br>
Then, follow these steps:<br> Then, follow these steps:<br>
0) Find (or create) a temporary directory that you have write access to. 0) Find (or create) a temporary directory that you have write access to.
(Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)<br><br> (Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)<br><br>
1) Click on the "Add Policy Entry" button in the 1) Click on the "Add Policy Entry" button in the
main policytool window.<br><br> main policytool window.<br><br>
...@@ -31,7 +32,7 @@ select "listenToAllAWTEvents".<br><br> ...@@ -31,7 +32,7 @@ select "listenToAllAWTEvents".<br><br>
select "Save As".<br><br> select "Save As".<br><br>
8) In the SaveAs window, enter "/tmp/ptool.test" as the file name 8) In the SaveAs window, enter "/tmp/ptool.test" as the file name
and click "OK".<br> and save it. If the file already exists, just replace it.<br>
(Or use the temporary directory mentioned in Step 0 if it's not '/tmp'. (Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
For example, "C:\foo\tmp\ptool.test" on Windows)<br><br> For example, "C:\foo\tmp\ptool.test" on Windows)<br><br>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册