myFileChooserDescriptor = fileChooserDescriptor;
myAccessor = accessor;
}
public void actionPerformed(ActionEvent e){
FileChooserDescriptor fileChooserDescriptor = (FileChooserDescriptor)myFileChooserDescriptor.clone();
if (myTitle != null) {
fileChooserDescriptor.setTitle(myTitle);
}
if (myDescription != null) {
fileChooserDescriptor.setDescription(myDescription);
}
String directoryName = myAccessor.getText(myTextComponent.getChildComponent()).trim();
VirtualFile initialFile = LocalFileSystem.getInstance().findFileByPath(directoryName.replace(File.separatorChar, '/'));
VirtualFile[] files = doChoose(fileChooserDescriptor, initialFile);
if (files != null && files.length != 0) {