public class com.sun.glass.ui.CommonDialogs
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.glass.ui.CommonDialogs
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/CommonDialogs;
public static com.sun.glass.ui.CommonDialogs$FileChooserResult showFileChooser(com.sun.glass.ui.Window, java.io.File, java.lang.String, java.lang.String, int, boolean, java.util.List<com.sun.glass.ui.CommonDialogs$ExtensionFilter>, int);
descriptor: (Lcom/sun/glass/ui/Window;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;IZLjava/util/List;I)Lcom/sun/glass/ui/CommonDialogs$FileChooserResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=10, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 1
invokestatic com.sun.glass.ui.CommonDialogs.convertFolder:(Ljava/io/File;)Ljava/lang/String;
astore 8
start local 8 2: aload 2
ifnonnull 4
3: ldc ""
astore 2
4: StackMap locals: java.lang.String
StackMap stack:
iload 4
ifeq 6
iload 4
iconst_1
if_icmpeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "Type parameter must be equal to one of the constants from Type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aconst_null
astore 9
start local 9 7: aload 6
ifnull 9
8: aload 6
aload 6
invokeinterface java.util.List.size:()I
anewarray com.sun.glass.ui.CommonDialogs$ExtensionFilter
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast com.sun.glass.ui.CommonDialogs$ExtensionFilter[]
astore 9
9: StackMap locals: com.sun.glass.ui.CommonDialogs$ExtensionFilter[]
StackMap stack:
aload 6
ifnull 13
10: aload 6
invokeinterface java.util.List.isEmpty:()Z
ifne 13
11: iload 7
iflt 13
12: iload 7
aload 6
invokeinterface java.util.List.size:()I
if_icmplt 14
13: StackMap locals:
StackMap stack:
iconst_0
istore 7
14: StackMap locals:
StackMap stack:
invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
15: aload 0
aload 8
aload 2
aload 3
invokestatic com.sun.glass.ui.CommonDialogs.convertTitle:(Ljava/lang/String;)Ljava/lang/String;
iload 4
iload 5
aload 9
iload 7
invokevirtual com.sun.glass.ui.Application.staticCommonDialogs_showFileChooser:(Lcom/sun/glass/ui/Window;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ[Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;I)Lcom/sun/glass/ui/CommonDialogs$FileChooserResult;
16: areturn
end local 9 end local 8 end local 7 end local 6 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 17 0 owner Lcom/sun/glass/ui/Window;
0 17 1 folder Ljava/io/File;
0 17 2 filename Ljava/lang/String;
0 17 3 title Ljava/lang/String;
0 17 4 type I
0 17 5 multipleMode Z
0 17 6 extensionFilters Ljava/util/List<Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;>;
0 17 7 defaultFilterIndex I
2 17 8 _folder Ljava/lang/String;
7 17 9 _extensionFilters [Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;
Signature: (Lcom/sun/glass/ui/Window;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;IZLjava/util/List<Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;>;I)Lcom/sun/glass/ui/CommonDialogs$FileChooserResult;
MethodParameters:
Name Flags
owner
folder
filename
title
type
multipleMode
extensionFilters
defaultFilterIndex
public static java.io.File showFolderChooser(com.sun.glass.ui.Window, java.io.File, java.lang.String);
descriptor: (Lcom/sun/glass/ui/Window;Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
aload 0
aload 1
invokestatic com.sun.glass.ui.CommonDialogs.convertFolder:(Ljava/io/File;)Ljava/lang/String;
aload 2
invokestatic com.sun.glass.ui.CommonDialogs.convertTitle:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.sun.glass.ui.Application.staticCommonDialogs_showFolderChooser:(Lcom/sun/glass/ui/Window;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 owner Lcom/sun/glass/ui/Window;
0 2 1 folder Ljava/io/File;
0 2 2 title Ljava/lang/String;
MethodParameters:
Name Flags
owner
folder
title
private static java.lang.String convertFolder(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ifnull 7
1: aload 0
invokevirtual java.io.File.isDirectory:()Z
ifeq 6
2: aload 0
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
3: areturn
4: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 5: new java.lang.IllegalArgumentException
dup
ldc "Unable to get a canonical path for folder"
aload 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Folder parameter must be a valid folder"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
ldc ""
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 folder Ljava/io/File;
5 6 1 e Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
folder
private static java.lang.String convertTitle(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
goto 2
StackMap locals:
StackMap stack:
1: ldc ""
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 title Ljava/lang/String;
MethodParameters:
Name Flags
title
protected static com.sun.glass.ui.CommonDialogs$FileChooserResult createFileChooserResult(java.lang.String[], com.sun.glass.ui.CommonDialogs$ExtensionFilter[], int);
descriptor: ([Ljava/lang/String;[Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;I)Lcom/sun/glass/ui/CommonDialogs$FileChooserResult;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: aload 0
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 6
StackMap locals: java.lang.String[] com.sun.glass.ui.CommonDialogs$ExtensionFilter[] int java.util.List top int int java.lang.String[]
StackMap stack:
2: aload 7
iload 5
aaload
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 3
new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
6: iload 5
iload 6
if_icmplt 2
7: new com.sun.glass.ui.CommonDialogs$FileChooserResult
dup
aload 3
8: aload 1
ifnull 9
iload 2
iflt 9
iload 2
aload 1
arraylength
if_icmplt 10
9: StackMap locals: java.lang.String[] com.sun.glass.ui.CommonDialogs$ExtensionFilter[] int java.util.List
StackMap stack: new 7 new 7 java.util.List
aconst_null
goto 11
StackMap locals: java.lang.String[] com.sun.glass.ui.CommonDialogs$ExtensionFilter[] int java.util.List
StackMap stack: new 7 new 7 java.util.List
10: aload 1
iload 2
aaload
11: StackMap locals: java.lang.String[] com.sun.glass.ui.CommonDialogs$ExtensionFilter[] int java.util.List
StackMap stack: new 7 new 7 java.util.List com.sun.glass.ui.CommonDialogs$ExtensionFilter
invokespecial com.sun.glass.ui.CommonDialogs$FileChooserResult.<init>:(Ljava/util/List;Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 files [Ljava/lang/String;
0 12 1 extensionFilters [Lcom/sun/glass/ui/CommonDialogs$ExtensionFilter;
0 12 2 index I
1 12 3 list Ljava/util/List<Ljava/io/File;>;
3 5 4 s Ljava/lang/String;
MethodParameters:
Name Flags
files
extensionFilters
index
}
SourceFile: "CommonDialogs.java"
NestMembers:
com.sun.glass.ui.CommonDialogs$ExtensionFilter com.sun.glass.ui.CommonDialogs$FileChooserResult com.sun.glass.ui.CommonDialogs$Type
InnerClasses:
public final ExtensionFilter = com.sun.glass.ui.CommonDialogs$ExtensionFilter of com.sun.glass.ui.CommonDialogs
public final FileChooserResult = com.sun.glass.ui.CommonDialogs$FileChooserResult of com.sun.glass.ui.CommonDialogs
public final Type = com.sun.glass.ui.CommonDialogs$Type of com.sun.glass.ui.CommonDialogs