RepositoryFileTreeManager.getInstance().fetchRepositoryFileTree( new AsyncCallback<RepositoryFileTree>() {
public void onFailure( Throwable caught ) {
}
public void onSuccess( RepositoryFileTree repositoryFileTree ) {
FileDialog dialog = new FileDialog( repositoryFileTree, path, title, okText, fileTypes.split( "," ) );
dialog.addFileChooserListener( new FileChooserListener() {
public void fileSelected( RepositoryFile repositoryFile, String filePath, String fileName, String title ) {
notifyOpenFileCallback( callback, repositoryFile, filePath, fileName, title );
}
public void fileSelectionChanged( RepositoryFile repositoryFile, String filePath, String fileName,
String title ) {
}
public void dialogCanceled() {
}
} );
dialog.show();
}
}, false, null, null, showHidden );
}