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 2659
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 2660
aload 0 /* this */
aload 1 /* tool */
putfield sun.security.tools.policytool.FileMenuListener.tool:Lsun/security/tools/policytool/PolicyTool;
2: .line 2661
aload 0 /* this */
aload 2 /* tw */
putfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
3: .line 2662
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 2666
getstatic sun.security.tools.policytool.PolicyTool.collator:Ljava/text/Collator;
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
1: .line 2667
getstatic sun.security.tools.policytool.ToolWindow.QUIT:Ljava/lang/String;
2: .line 2666
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 8
3: .line 2670
new sun.security.tools.policytool.ToolDialog
dup
4: .line 2671
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 2670
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 2672
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 2677
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 2678
getstatic sun.security.tools.policytool.ToolWindow.NEW_POLICY_FILE:Ljava/lang/String;
10: .line 2677
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 16
11: .line 2681
new sun.security.tools.policytool.ToolDialog
dup
12: .line 2682
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 2681
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 2683
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 2688
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 2689
getstatic sun.security.tools.policytool.ToolWindow.OPEN_POLICY_FILE:Ljava/lang/String;
18: .line 2688
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 24
19: .line 2692
new sun.security.tools.policytool.ToolDialog
dup
20: .line 2693
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 2692
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 2694
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 2699
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 2700
getstatic sun.security.tools.policytool.ToolWindow.SAVE_POLICY_FILE:Ljava/lang/String;
26: .line 2699
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 58
27: .line 2703
aload 0 /* this */
getfield sun.security.tools.policytool.FileMenuListener.tw:Lsun/security/tools/policytool/ToolWindow;
28: .line 2704
iconst_1
29: .line 2703
invokevirtual sun.security.tools.policytool.ToolWindow.getComponent:(I)Ljava/awt/Component;
checkcast java.awt.TextField
30: .line 2704
invokevirtual java.awt.TextField.getText:()Ljava/lang/String;
31: .line 2703
astore 2 /* filename */
start local 2 // java.lang.String filename
32: .line 2707
aload 2 /* filename */
ifnull 33
aload 2 /* filename */
invokevirtual java.lang.String.length:()I
ifne 38
33: .line 2709
StackMap locals: java.lang.String
StackMap stack:
new sun.security.tools.policytool.ToolDialog
dup
34: .line 2710
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 2709
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 2711
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 2712
goto 70
38: .line 2715
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 2718
new java.text.MessageFormat
dup
40: .line 2719
getstatic sun.security.tools.policytool.PolicyTool.rb:Ljava/util/ResourceBundle;
41: .line 2720
ldc "Policy.successfully.written.to.filename"
42: .line 2719
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
43: .line 2718
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
astore 3 /* form */
start local 3 // java.text.MessageFormat form
44: .line 2721
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 2722
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 2723
goto 70
StackMap locals:
StackMap stack: java.io.FileNotFoundException
47: astore 3 /* fnfe */
start local 3 // java.io.FileNotFoundException fnfe
48: .line 2724
aload 2 /* filename */
ifnull 49
aload 2 /* filename */
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 53
49: .line 2725
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 2726
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 2725
invokevirtual sun.security.tools.policytool.ToolWindow.displayErrorDialog:(Ljava/awt/Window;Ljava/lang/Throwable;)V
52: .line 2727
goto 70
53: .line 2728
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 2730
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 2731
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 2734
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 2735
getstatic sun.security.tools.policytool.ToolWindow.SAVE_AS_POLICY_FILE:Ljava/lang/String;
60: .line 2734
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 66
61: .line 2738
new sun.security.tools.policytool.ToolDialog
dup
62: .line 2739
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 2738
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 2740
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 2742
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 2743
getstatic sun.security.tools.policytool.ToolWindow.VIEW_WARNINGS:Ljava/lang/String;
68: .line 2742
invokevirtual java.text.Collator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ifne 70
69: .line 2744
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 2746
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"