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