use of org.pentaho.repositoryvfs.dialog.RepositoryVfsProviderDialog in project pentaho-kettle by pentaho.
the class RepositoryVfsKettleLifecycleListener method onStart.
@Override
public void onStart(LifeEventHandler handler) throws LifecycleException {
/*
* Registers the UI for the VFS Browser
*/
final Spoon spoon = spoonSupplier.get();
spoon.getDisplay().asyncExec(new Runnable() {
public void run() {
VfsFileChooserDialog dialog = spoon.getVfsFileChooserDialog(null, null);
RepositoryVfsProviderDialog hadoopVfsFileChooserDialog = new RepositoryVfsProviderDialog(RepositoryVfsProvider.SCHEME, "Repository VFS", dialog, SWT.NONE);
dialog.addVFSUIPanel(hadoopVfsFileChooserDialog);
}
});
}
Aggregations