public class javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel extends javax.swing.AbstractListModel<java.lang.Object> implements javax.swing.ComboBoxModel<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel
super_class: javax.swing.AbstractListModel
{
java.util.Vector<java.io.File> directories;
descriptor: Ljava/util/Vector;
flags: (0x0000)
Signature: Ljava/util/Vector<Ljava/io/File;>;
int[] depths;
descriptor: [I
flags: (0x0000)
java.io.File selectedDirectory;
descriptor: Ljava/io/File;
flags: (0x0000)
javax.swing.JFileChooser chooser;
descriptor: Ljavax/swing/JFileChooser;
flags: (0x0000)
javax.swing.filechooser.FileSystemView fsv;
descriptor: Ljavax/swing/filechooser/FileSystemView;
flags: (0x0000)
final javax.swing.plaf.metal.MetalFileChooserUI this$0;
descriptor: Ljavax/swing/plaf/metal/MetalFileChooserUI;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(javax.swing.plaf.metal.MetalFileChooserUI);
descriptor: (Ljavax/swing/plaf/metal/MetalFileChooserUI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 0: aload 0
aload 1
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.this$0:Ljavax/swing/plaf/metal/MetalFileChooserUI;
aload 0
invokespecial javax.swing.AbstractListModel.<init>:()V
1: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
2: aload 0
aconst_null
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
3: aload 0
aconst_null
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.selectedDirectory:Ljava/io/File;
4: aload 0
aload 1
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI.getFileChooser:()Ljavax/swing/JFileChooser;
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.chooser:Ljavax/swing/JFileChooser;
5: aload 0
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.chooser:Ljavax/swing/JFileChooser;
invokevirtual javax.swing.JFileChooser.getFileSystemView:()Ljavax/swing/filechooser/FileSystemView;
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.fsv:Ljavax/swing/filechooser/FileSystemView;
6: aload 1
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI.getFileChooser:()Ljavax/swing/JFileChooser;
invokevirtual javax.swing.JFileChooser.getCurrentDirectory:()Ljava/io/File;
astore 2
start local 2 7: aload 2
ifnull 9
8: aload 0
aload 2
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem:(Ljava/io/File;)V
9: StackMap locals: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel javax.swing.plaf.metal.MetalFileChooserUI java.io.File
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
7 10 2 dir Ljava/io/File;
MethodParameters:
Name Flags
this$0 final
private void addItem(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.chooser:Ljavax/swing/JFileChooser;
invokestatic sun.swing.FilePane.usesShellFolder:(Ljavax/swing/JFileChooser;)Z
istore 2
start local 2 3: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
invokevirtual java.util.Vector.clear:()V
4: iload 2
ifeq 6
5: ldc "fileChooserComboBoxFolders"
invokestatic sun.awt.shell.ShellFolder.get:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File[]
goto 7
6: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.fsv:Ljavax/swing/filechooser/FileSystemView;
invokevirtual javax.swing.filechooser.FileSystemView.getRoots:()[Ljava/io/File;
7: StackMap locals:
StackMap stack: java.io.File[]
astore 3
start local 3 8: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 3
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokevirtual java.util.Vector.addAll:(Ljava/util/Collection;)Z
pop
9: aload 1
invokestatic sun.awt.shell.ShellFolder.getNormalizedFile:(Ljava/io/File;)Ljava/io/File;
astore 4
start local 4 10: goto 13
end local 4 StackMap locals: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel java.io.File int java.io.File[]
StackMap stack: java.io.IOException
11: pop
12: aload 1
astore 4
start local 4 13: StackMap locals: java.io.File
StackMap stack:
iload 2
ifeq 14
aload 4
invokestatic sun.awt.shell.ShellFolder.getShellFolder:(Ljava/io/File;)Lsun/awt/shell/ShellFolder;
goto 15
14: StackMap locals:
StackMap stack:
aload 4
15: StackMap locals:
StackMap stack: java.io.File
astore 5
start local 5 16: aload 5
astore 6
start local 6 17: new java.util.Vector
dup
bipush 10
invokespecial java.util.Vector.<init>:(I)V
astore 7
start local 7 18: StackMap locals: java.io.File java.io.File java.util.Vector
StackMap stack:
aload 7
aload 6
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
19: aload 6
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
dup
astore 6
ifnonnull 18
20: aload 7
invokevirtual java.util.Vector.size:()I
istore 8
start local 8 21: iconst_0
istore 9
start local 9 22: goto 33
23: StackMap locals: int int
StackMap stack:
aload 7
iload 9
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast java.io.File
astore 6
24: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 6
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifeq 32
25: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 6
invokevirtual java.util.Vector.indexOf:(Ljava/lang/Object;)I
istore 10
start local 10 26: iload 9
iconst_1
isub
istore 11
start local 11 27: goto 30
28: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 7
iload 11
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast java.io.File
iload 10
iload 9
iadd
iload 11
isub
invokevirtual java.util.Vector.insertElementAt:(Ljava/lang/Object;I)V
29: iinc 11 -1
StackMap locals:
StackMap stack:
30: iload 11
ifge 28
end local 11 31: goto 34
end local 10 32: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
33: iload 9
iload 8
if_icmplt 23
end local 9 34: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.calculateDepths:()V
35: aload 0
aload 5
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem:(Ljava/lang/Object;)V
end local 8 end local 7 end local 6 end local 5 36: goto 39
StackMap locals: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel java.io.File int java.io.File[] java.io.File
StackMap stack: java.io.FileNotFoundException
37: pop
38: aload 0
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.calculateDepths:()V
39: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
0 40 1 directory Ljava/io/File;
3 40 2 useShellFolder Z
8 40 3 baseFolders [Ljava/io/File;
10 11 4 canonical Ljava/io/File;
13 40 4 canonical Ljava/io/File;
16 36 5 sf Ljava/io/File;
17 36 6 f Ljava/io/File;
18 36 7 path Ljava/util/Vector<Ljava/io/File;>;
21 36 8 pathCount I
22 34 9 i I
26 32 10 topIndex I
27 31 11 j I
Exception table:
from to target type
9 10 11 Class java.io.IOException
13 36 37 Class java.io.FileNotFoundException
MethodParameters:
Name Flags
directory
private void calculateDepths();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
newarray 10
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
1: iconst_0
istore 1
start local 1 2: goto 15
3: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
iload 1
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast java.io.File
astore 2
start local 2 4: aload 2
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 3
start local 3 5: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
iload 1
iconst_0
iastore
6: aload 3
ifnull 14
7: iload 1
iconst_1
isub
istore 4
start local 4 8: goto 13
9: StackMap locals: java.io.File java.io.File int
StackMap stack:
aload 3
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
iload 4
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifeq 12
10: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
iload 1
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
iload 4
iaload
iconst_1
iadd
iastore
11: goto 14
12: StackMap locals:
StackMap stack:
iinc 4 -1
StackMap locals:
StackMap stack:
13: iload 4
ifge 9
end local 4 end local 3 end local 2 14: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
15: iload 1
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
arraylength
if_icmplt 3
end local 1 16: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
2 16 1 i I
4 14 2 dir Ljava/io/File;
5 14 3 parent Ljava/io/File;
8 14 4 j I
public int getDepth(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
ifnull 1
iload 1
iflt 1
iload 1
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
arraylength
if_icmpge 1
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.depths:[I
iload 1
iaload
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
0 3 1 i I
MethodParameters:
Name Flags
i
public void setSelectedItem(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
checkcast java.io.File
putfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.selectedDirectory:Ljava/io/File;
1: aload 0
aload 0
iconst_m1
iconst_m1
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.fireContentsChanged:(Ljava/lang/Object;II)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
0 3 1 selectedDirectory Ljava/lang/Object;
MethodParameters:
Name Flags
selectedDirectory
public java.lang.Object getSelectedItem();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.selectedDirectory:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
public int getSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
public java.lang.Object getElementAt(int);
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
iload 1
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
0 1 1 index I
MethodParameters:
Name Flags
index
}
Signature: Ljavax/swing/AbstractListModel<Ljava/lang/Object;>;Ljavax/swing/ComboBoxModel<Ljava/lang/Object;>;
SourceFile: "MetalFileChooserUI.java"
NestHost: javax.swing.plaf.metal.MetalFileChooserUI
InnerClasses:
protected DirectoryComboBoxModel = javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel of javax.swing.plaf.metal.MetalFileChooserUI