Search in sources :

Example 1 with RepositoryVfsProviderDialog

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);
        }
    });
}
Also used : RepositoryVfsProviderDialog(org.pentaho.repositoryvfs.dialog.RepositoryVfsProviderDialog) VfsFileChooserDialog(org.pentaho.vfs.ui.VfsFileChooserDialog) Spoon(org.pentaho.di.ui.spoon.Spoon)

Aggregations

Spoon (org.pentaho.di.ui.spoon.Spoon)1 RepositoryVfsProviderDialog (org.pentaho.repositoryvfs.dialog.RepositoryVfsProviderDialog)1 VfsFileChooserDialog (org.pentaho.vfs.ui.VfsFileChooserDialog)1