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 2712
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 2713
aload 0 /* this */
aload 1 /* tool */
putfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
2: .line 2714
aload 0 /* this */
aload 2 /* tw */
putfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
3: .line 2715
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 2719
getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
1: .line 2720
getstatic sun.security.tools.policytool.ToolWindow.QUIT:Ljava/lang/String;
2: .line 2719
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 8
3: .line 2723
new sun.security.tools.policytool.ToolDialog
dup
4: .line 2724
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "Save.Changes"
invokevirtual java.util.ResourceBundle.getString:(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 2723
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 2725
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 2730
goto 70
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 2731
getstatic sun.security.tools.policytool.ToolWindow.NEW_POLICY_FILE:Ljava/lang/String;
10: .line 2730
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 16
11: .line 2734
new sun.security.tools.policytool.ToolDialog
dup
12: .line 2735
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "Save.Changes"
invokevirtual java.util.ResourceBundle.getString:(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 2734
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 2736
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 2741
goto 70
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 2742
getstatic sun.security.tools.policytool.ToolWindow.OPEN_POLICY_FILE:Ljava/lang/String;
18: .line 2741
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 24
19: .line 2745
new sun.security.tools.policytool.ToolDialog
dup
20: .line 2746
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "Save.Changes"
invokevirtual java.util.ResourceBundle.getString:(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 2745
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 2747
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 2752
goto 70
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 2753
getstatic sun.security.tools.policytool.ToolWindow.SAVE_POLICY_FILE:Ljava/lang/String;
26: .line 2752
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 58
27: .line 2756
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
28: .line 2757
iconst_1
29: .line 2756
invokevirtual sun.security.tools.policytool.ToolWindow.getComponent:(I)Ljava/awt/Component;
checkcast java.awt.TextField
30: .line 2757
invokevirtual java.awt.TextField.getText:()Ljava/lang/String;
31: .line 2756
astore 2 /* filename */
start local 2 // java.lang.String filename
32: .line 2760
aload 2 /* filename */
ifnull 33
aload 2 /* filename */
invokevirtual java.lang.String.length:()I
ifne 38
33: .line 2762
StackMap locals: java.lang.String
StackMap stack:
new sun.security.tools.policytool.ToolDialog
dup
34: .line 2763
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "Save.As"
invokevirtual java.util.ResourceBundle.getString:(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 2762
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 2764
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 2765
goto 70
38: .line 2768
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 2771
new java.text.MessageFormat
dup
40: .line 2772
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
41: .line 2773
ldc "Policy.successfully.written.to.filename"
42: .line 2772
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
43: .line 2771
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 3 /* form */
start local 3 // java.text.MessageFormat form
44: .line 2774
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2 /* filename */
aastore
astore 4 /* source */
start local 4 // java.lang.Object[] source
45: .line 2775
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
46: .line 2776
goto 70
StackMap locals:
StackMap stack: java.io.FileNotFoundException
47: astore 3 /* fnfe */
start local 3 // java.io.FileNotFoundException fnfe
48: .line 2777
aload 2 /* filename */
ifnull 49
aload 2 /* filename */
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 53
49: .line 2778
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
50: .line 2779
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "null.filename"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
51: .line 2778
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
52: .line 2780
goto 70
53: .line 2781
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
54: goto 70
55: .line 2783
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
56: .line 2784
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
57: .line 2787
goto 70
StackMap locals:
StackMap stack:
58: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
59: .line 2788
getstatic sun.security.tools.policytool.ToolWindow.SAVE_AS_POLICY_FILE:Ljava/lang/String;
60: .line 2787
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 66
61: .line 2791
new sun.security.tools.policytool.ToolDialog
dup
62: .line 2792
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
ldc "Save.As"
invokevirtual java.util.ResourceBundle.getString:(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
63: .line 2791
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
64: .line 2793
aload 2 /* td */
iconst_0
invokevirtual sun.security.tools.policytool.ToolDialog.displaySaveAsDialog:(I)V
end local 2 // sun.security.tools.policytool.ToolDialog td
65: .line 2795
goto 70
StackMap locals:
StackMap stack:
66: getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
67: .line 2796
getstatic sun.security.tools.policytool.ToolWindow.VIEW_WARNINGS:Ljava/lang/String;
68: .line 2795
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 70
69: .line 2797
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
70: .line 2799
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 71 0 this Lsun/security/tools/policytool/FileMenuListener;
0 71 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 57 2 filename Ljava/lang/String;
36 37 3 td Lsun/security/tools/policytool/ToolDialog;
44 46 3 form Ljava/text/MessageFormat;
45 46 4 source [Ljava/lang/Object;
48 54 3 fnfe Ljava/io/FileNotFoundException;
56 57 3 ee Ljava/lang/Exception;
64 65 2 td Lsun/security/tools/policytool/ToolDialog;
Exception table:
from to target type
38 46 47 Class java.io.FileNotFoundException
38 46 55 Class java.lang.Exception
MethodParameters:
Name Flags
e
}
SourceFile: "PolicyTool.java"