public class javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel extends javax.swing.AbstractListModel implements javax.swing.ComboBoxModel
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=11, 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.directories:Ljava/util/Vector;
invokevirtual java.util.Vector.clear:()V
3: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.this$0:Ljavax/swing/plaf/metal/MetalFileChooserUI;
getfield javax.swing.plaf.metal.MetalFileChooserUI.useShellFolder:Z
ifeq 5
4: ldc "fileChooserComboBoxFolders"
invokestatic sun.awt.shell.ShellFolder.get:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File[]
goto 6
5: StackMap locals:
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;
6: StackMap locals:
StackMap stack: java.io.File[]
astore 2
start local 2 7: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokevirtual java.util.Vector.addAll:(Ljava/util/Collection;)Z
pop
8: aload 1
invokestatic sun.awt.shell.ShellFolder.getNormalizedFile:(Ljava/io/File;)Ljava/io/File;
astore 3
start local 3 9: goto 12
end local 3 StackMap locals: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel java.io.File java.io.File[]
StackMap stack: java.io.IOException
10: pop
11: aload 1
astore 3
start local 3 12: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.this$0:Ljavax/swing/plaf/metal/MetalFileChooserUI;
getfield javax.swing.plaf.metal.MetalFileChooserUI.useShellFolder:Z
ifeq 13
aload 3
invokestatic sun.awt.shell.ShellFolder.getShellFolder:(Ljava/io/File;)Lsun/awt/shell/ShellFolder;
goto 14
13: StackMap locals:
StackMap stack:
aload 3
14: StackMap locals:
StackMap stack: java.io.File
astore 4
start local 4 15: aload 4
astore 5
start local 5 16: new java.util.Vector
dup
bipush 10
invokespecial java.util.Vector.<init>:(I)V
astore 6
start local 6 17: StackMap locals: java.io.File java.io.File java.util.Vector
StackMap stack:
aload 6
aload 5
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
18: aload 5
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
dup
astore 5
ifnonnull 17
19: aload 6
invokevirtual java.util.Vector.size:()I
istore 7
start local 7 20: iconst_0
istore 8
start local 8 21: goto 32
22: StackMap locals: int int
StackMap stack:
aload 6
iload 8
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast java.io.File
astore 5
23: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 5
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifeq 31
24: aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 5
invokevirtual java.util.Vector.indexOf:(Ljava/lang/Object;)I
istore 9
start local 9 25: iload 8
iconst_1
isub
istore 10
start local 10 26: goto 29
27: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.directories:Ljava/util/Vector;
aload 6
iload 10
invokevirtual java.util.Vector.get:(I)Ljava/lang/Object;
checkcast java.io.File
iload 9
iload 8
iadd
iload 10
isub
invokevirtual java.util.Vector.insertElementAt:(Ljava/lang/Object;I)V
28: iinc 10 -1
StackMap locals:
StackMap stack:
29: iload 10
ifge 27
end local 10 30: goto 33
end local 9 31: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
32: iload 8
iload 7
if_icmplt 22
end local 8 33: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.calculateDepths:()V
34: aload 0
aload 4
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem:(Ljava/lang/Object;)V
end local 7 end local 6 end local 5 end local 4 35: goto 38
StackMap locals: javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel java.io.File java.io.File[] java.io.File
StackMap stack: java.io.FileNotFoundException
36: pop
37: aload 0
invokevirtual javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.calculateDepths:()V
38: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Ljavax/swing/plaf/metal/MetalFileChooserUI$DirectoryComboBoxModel;
0 39 1 directory Ljava/io/File;
7 39 2 baseFolders [Ljava/io/File;
9 10 3 canonical Ljava/io/File;
12 39 3 canonical Ljava/io/File;
15 35 4 sf Ljava/io/File;
16 35 5 f Ljava/io/File;
17 35 6 path Ljava/util/Vector<Ljava/io/File;>;
20 35 7 pathCount I
21 33 8 i I
25 31 9 topIndex I
26 30 10 j I
Exception table:
from to target type
8 9 10 Class java.io.IOException
12 35 36 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
}
SourceFile: "MetalFileChooserUI.java"
NestHost: javax.swing.plaf.metal.MetalFileChooserUI
InnerClasses:
protected DirectoryComboBoxModel = javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel of javax.swing.plaf.metal.MetalFileChooserUI