class sun.security.tools.policytool.FileMenuListener implements java.awt.event.ActionListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.tools.policytool.FileMenuListener
super_class: java.lang.Object
{
private sun.security.tools.policytool.PolicyTool tool;
descriptor: Lsun/security/tools/policytool/PolicyTool;
flags: (0x0002) ACC_PRIVATE
private sun.security.tools.policytool.ToolWindow tw;
descriptor: Lsun/security/tools/policytool/ToolWindow;
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.tools.policytool.PolicyTool, sun.security.tools.policytool.ToolWindow);
descriptor: (Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 // sun.security.tools.policytool.FileMenuListener this
start local 1 // sun.security.tools.policytool.PolicyTool tool
start local 2 // sun.security.tools.policytool.ToolWindow tw
0: .line 2990
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 2991
aload 0 /* this */
aload 1 /* tool */
putfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
2: .line 2992
aload 0 /* this */
aload 2 /* tw */
putfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
3: .line 2993
return
end local 2 // sun.security.tools.policytool.ToolWindow tw
end local 1 // sun.security.tools.policytool.PolicyTool tool
end local 0 // sun.security.tools.policytool.FileMenuListener this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/tools/policytool/FileMenuListener;
0 4 1 tool Lsun/security/tools/policytool/PolicyTool;
0 4 2 tw Lsun/security/tools/policytool/ToolWindow;
MethodParameters:
Name Flags
tool
tw
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 // sun.security.tools.policytool.FileMenuListener this
start local 1 // java.awt.event.ActionEvent e
0: .line 2997
getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
1: .line 2998
ldc "Exit"
2: .line 2997
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 8
3: .line 3001
new sun.security.tools.policytool.ToolDialog
dup
4: .line 3002
ldc "Save.Changes"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_1
5: .line 3001
invokespecial sun.security.tools.policytool.ToolDialog.<init>:(Ljava/lang/String;Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Z)V
astore 2 /* td */
start local 2 // sun.security.tools.policytool.ToolDialog td
6: .line 3003
aload 2 /* td */
iconst_1
invokevirtual sun.security.tools.policytool.ToolDialog.displayUserSave:(I)V
end local 2 // sun.security.tools.policytool.ToolDialog td
7: .line 3008
goto 69
StackMap locals:
StackMap stack:
8: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
9: .line 3009
ldc "New"
10: .line 3008
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 16
11: .line 3012
new sun.security.tools.policytool.ToolDialog
dup
12: .line 3013
ldc "Save.Changes"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_1
13: .line 3012
invokespecial sun.security.tools.policytool.ToolDialog.<init>:(Ljava/lang/String;Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Z)V
astore 2 /* td */
start local 2 // sun.security.tools.policytool.ToolDialog td
14: .line 3014
aload 2 /* td */
iconst_2
invokevirtual sun.security.tools.policytool.ToolDialog.displayUserSave:(I)V
end local 2 // sun.security.tools.policytool.ToolDialog td
15: .line 3019
goto 69
StackMap locals:
StackMap stack:
16: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
17: .line 3020
ldc "Open"
18: .line 3019
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 24
19: .line 3023
new sun.security.tools.policytool.ToolDialog
dup
20: .line 3024
ldc "Save.Changes"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_1
21: .line 3023
invokespecial sun.security.tools.policytool.ToolDialog.<init>:(Ljava/lang/String;Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Z)V
astore 2 /* td */
start local 2 // sun.security.tools.policytool.ToolDialog td
22: .line 3025
aload 2 /* td */
iconst_3
invokevirtual sun.security.tools.policytool.ToolDialog.displayUserSave:(I)V
end local 2 // sun.security.tools.policytool.ToolDialog td
23: .line 3030
goto 69
StackMap locals:
StackMap stack:
24: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
25: .line 3031
ldc "Save"
26: .line 3030
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 57
27: .line 3034
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
28: .line 3035
iconst_1
29: .line 3034
invokevirtual sun.security.tools.policytool.ToolWindow.getComponent:(I)Ljava/awt/Component;
checkcast javax.swing.JTextField
30: .line 3035
invokevirtual javax.swing.JTextField.getText:()Ljava/lang/String;
31: .line 3034
astore 2 /* filename */
start local 2 // java.lang.String filename
32: .line 3038
aload 2 /* filename */
ifnull 33
aload 2 /* filename */
invokevirtual java.lang.String.length:()I
ifne 38
33: .line 3040
StackMap locals: java.lang.String
StackMap stack:
new sun.security.tools.policytool.ToolDialog
dup
34: .line 3041
ldc "Save.As"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_1
35: .line 3040
invokespecial sun.security.tools.policytool.ToolDialog.<init>:(Ljava/lang/String;Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Z)V
astore 3 /* td */
start local 3 // sun.security.tools.policytool.ToolDialog td
36: .line 3042
aload 3 /* td */
iconst_0
invokevirtual sun.security.tools.policytool.ToolDialog.displaySaveAsDialog:(I)V
end local 3 // sun.security.tools.policytool.ToolDialog td
37: .line 3043
goto 69
38: .line 3046
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 2 /* filename */
invokevirtual sun.security.tools.policytool.PolicyTool.savePolicy:(Ljava/lang/String;)V
39: .line 3049
new java.text.MessageFormat
dup
40: .line 3051
ldc "Policy.successfully.written.to.filename"
41: .line 3050
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
42: .line 3049
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 3 /* form */
start local 3 // java.text.MessageFormat form
43: .line 3052
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2 /* filename */
aastore
astore 4 /* source */
start local 4 // java.lang.Object[] source
44: .line 3053
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
aconst_null
aload 3 /* form */
aload 4 /* source */
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual sun.security.tools.policytool.ToolWindow.displayStatusDialog:(Ljava/awt/Window;Ljava/lang/String;)V
end local 4 // java.lang.Object[] source
end local 3 // java.text.MessageFormat form
45: .line 3054
goto 69
StackMap locals:
StackMap stack: java.io.FileNotFoundException
46: astore 3 /* fnfe */
start local 3 // java.io.FileNotFoundException fnfe
47: .line 3055
aload 2 /* filename */
ifnull 48
aload 2 /* filename */
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 52
48: .line 3056
StackMap locals: java.io.FileNotFoundException
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
aconst_null
new java.io.FileNotFoundException
dup
49: .line 3057
ldc "null.filename"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
50: .line 3056
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
51: .line 3058
goto 69
52: .line 3059
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
aconst_null
aload 3 /* fnfe */
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
end local 3 // java.io.FileNotFoundException fnfe
53: goto 69
54: .line 3061
StackMap locals: sun.security.tools.policytool.FileMenuListener java.awt.event.ActionEvent java.lang.String
StackMap stack: java.lang.Exception
astore 3 /* ee */
start local 3 // java.lang.Exception ee
55: .line 3062
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
aconst_null
aload 3 /* ee */
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
end local 3 // java.lang.Exception ee
end local 2 // java.lang.String filename
56: .line 3065
goto 69
StackMap locals:
StackMap stack:
57: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
58: .line 3066
ldc "Save.As"
59: .line 3065
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 65
60: .line 3069
new sun.security.tools.policytool.ToolDialog
dup
61: .line 3070
ldc "Save.As"
invokestatic sun.security.tools.policytool.PolicyTool.getMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
iconst_1
62: .line 3069
invokespecial sun.security.tools.policytool.ToolDialog.<init>:(Ljava/lang/String;Lsun/security/tools/policytool/PolicyTool;Lsun/security/tools/policytool/ToolWindow;Z)V
astore 2 /* td */
start local 2 // sun.security.tools.policytool.ToolDialog td
63: .line 3071
aload 2 /* td */
iconst_0
invokevirtual sun.security.tools.policytool.ToolDialog.displaySaveAsDialog:(I)V
end local 2 // sun.security.tools.policytool.ToolDialog td
64: .line 3073
goto 69
StackMap locals:
StackMap stack:
65: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
66: .line 3074
ldc "View.Warning.Log"
67: .line 3073
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 69
68: .line 3075
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
aconst_null
invokevirtual sun.security.tools.policytool.ToolWindow.displayWarningLog:(Ljava/awt/Window;)V
69: .line 3077
StackMap locals:
StackMap stack:
return
end local 1 // java.awt.event.ActionEvent e
end local 0 // sun.security.tools.policytool.FileMenuListener this
LocalVariableTable:
Start End Slot Name Signature
0 70 0 this Lsun/security/tools/policytool/FileMenuListener;
0 70 1 e Ljava/awt/event/ActionEvent;
6 7 2 td Lsun/security/tools/policytool/ToolDialog;
14 15 2 td Lsun/security/tools/policytool/ToolDialog;
22 23 2 td Lsun/security/tools/policytool/ToolDialog;
32 56 2 filename Ljava/lang/String;
36 37 3 td Lsun/security/tools/policytool/ToolDialog;
43 45 3 form Ljava/text/MessageFormat;
44 45 4 source [Ljava/lang/Object;
47 53 3 fnfe Ljava/io/FileNotFoundException;
55 56 3 ee Ljava/lang/Exception;
63 64 2 td Lsun/security/tools/policytool/ToolDialog;
Exception table:
from to target type
38 45 46 Class java.io.FileNotFoundException
38 45 54 Class java.lang.Exception
MethodParameters:
Name Flags
e
}
SourceFile: "PolicyTool.java"