public void activate() { try { getVfsFileChooserDialog().setRootFile( null ); getVfsFileChooserDialog().setInitialFile( null ); getVfsFileChooserDialog().openFileCombo.setText( GoogleDriveFileProvider.SCHEME + "://" ); getVfsFileChooserDialog().vfsBrowser.fileSystemTree.removeAll(); super.activate(); FileObject newRoot = resolveFile( getVfsFileChooserDialog().openFileCombo.getText() ); getVfsFileChooserDialog().vfsBrowser.resetVfsRoot( newRoot ); } catch ( FileSystemException e ) { System.out.println( e ); } }
protected List<VFSScheme> getAvailableVFSSchemes() { VfsFileChooserDialog fileChooserDialog = getVfsFileChooserDialog( null, null ); List<CustomVfsUiPanel> customVfsUiPanels = fileChooserDialog.getCustomVfsUiPanels(); List<VFSScheme> vfsSchemes = new ArrayList<>(); customVfsUiPanels.forEach( vfsPanel -> { VFSScheme scheme = new VFSScheme( vfsPanel.getVfsScheme(), vfsPanel.getVfsSchemeDisplayText() ); vfsSchemes.add( scheme ); } ); return vfsSchemes; }
if ( currentPanel.getVfsSchemeDisplayText().equals( LOCAL_ENVIRONMENT ) ) { wFields.getActiveTableItem().setText( wFields.getActiveTableColumn() - 1, LOCAL_ENVIRONMENT ); } else if ( currentPanel.getVfsSchemeDisplayText().equals( S3_ENVIRONMENT ) ) { wFields.getActiveTableItem().setText( wFields.getActiveTableColumn() - 1, S3_ENVIRONMENT ); } else if ( namedClusterWidget != null && namedClusterWidget.getSelectedNamedCluster() != null ) {
if ( currentPanel.getVfsSchemeDisplayText().equals( LOCAL_ENVIRONMENT ) ) { wFilenameList.getActiveTableItem().setText( wFilenameList.getActiveTableColumn() - 1, LOCAL_ENVIRONMENT ); } else if ( currentPanel.getVfsSchemeDisplayText().equals( S3_ENVIRONMENT ) ) { wFilenameList.getActiveTableItem().setText( wFilenameList.getActiveTableColumn() - 1, S3_ENVIRONMENT ); } else if ( isCluster ) {
protected List<VFSScheme> getAvailableVFSSchemes() throws KettleFileException, FileSystemException { VfsFileChooserDialog fileChooserDialog = getVfsFileChooserDialog( null, null ); List<CustomVfsUiPanel> customVfsUiPanels = fileChooserDialog.getCustomVfsUiPanels(); List<VFSScheme> vfsSchemes = new ArrayList<>(); customVfsUiPanels.forEach( vfsPanel -> { if ( !MAPRFS_SCHEME.equals( vfsPanel.getVfsScheme() ) ) { VFSScheme scheme = new VFSScheme( vfsPanel.getVfsScheme(), vfsPanel.getVfsSchemeDisplayText() ); vfsSchemes.add( scheme ); } } ); return vfsSchemes; }
public void activate() { vfsFileChooserDialog.setRootFile( null ); vfsFileChooserDialog.setInitialFile( null ); vfsFileChooserDialog.openFileCombo.setText( "maprfs://" ); vfsFileChooserDialog.vfsBrowser.fileSystemTree.removeAll(); super.activate(); try { FileObject newRoot = resolveFile( vfsFileChooserDialog.openFileCombo.getText() ); vfsFileChooserDialog.vfsBrowser.resetVfsRoot( newRoot ); } catch ( FileSystemException ignored ) { //ignored } }
protected List<VFSScheme> getAvailableVFSSchemes() throws KettleFileException, FileSystemException { VfsFileChooserDialog fileChooserDialog = getVfsFileChooserDialog( null, null ); List<CustomVfsUiPanel> customVfsUiPanels = fileChooserDialog.getCustomVfsUiPanels(); List<VFSScheme> vfsSchemes = new ArrayList<>(); customVfsUiPanels.forEach( vfsPanel -> { VFSScheme scheme = new VFSScheme( vfsPanel.getVfsScheme(), vfsPanel.getVfsSchemeDisplayText() ); vfsSchemes.add( scheme ); } ); return vfsSchemes; }
@Override public void activate() { vfsFileChooserDialog.setRootFile( rootFile ); vfsFileChooserDialog.setInitialFile( initialFile ); vfsFileChooserDialog.openFileCombo.setText( "s3://s3/" ); vfsFileChooserDialog.vfsBrowser.fileSystemTree.removeAll(); super.activate(); try { FileObject newRoot = resolveFile( vfsFileChooserDialog.openFileCombo.getText() ); vfsFileChooserDialog.vfsBrowser.resetVfsRoot( newRoot ); } catch ( FileSystemException ignored ) { //ignored } }
protected List<VFSScheme> getAvailableVFSSchemes() throws KettleFileException, FileSystemException { VfsFileChooserDialog fileChooserDialog = getVfsFileChooserDialog( null, null ); List<CustomVfsUiPanel> customVfsUiPanels = fileChooserDialog.getCustomVfsUiPanels(); List<VFSScheme> vfsSchemes = new ArrayList<>(); customVfsUiPanels.forEach( vfsPanel -> { VFSScheme scheme = new VFSScheme( vfsPanel.getVfsScheme(), vfsPanel.getVfsSchemeDisplayText() ); vfsSchemes.add( scheme ); } ); return vfsSchemes; }
@Override public void activate() { vfsFileChooserDialog.setRootFile( rootFile ); vfsFileChooserDialog.setInitialFile( initialFile ); vfsFileChooserDialog.openFileCombo.setText( "s3n://s3n/" ); vfsFileChooserDialog.vfsBrowser.fileSystemTree.removeAll(); super.activate(); try { FileObject newRoot = resolveFile( vfsFileChooserDialog.openFileCombo.getText() ); vfsFileChooserDialog.vfsBrowser.resetVfsRoot( newRoot ); } catch ( FileSystemException ignored ) { //ignored } }
@Override public void activate() { vfsFileChooserDialog.setRootFile( null ); vfsFileChooserDialog.setInitialFile( null ); vfsFileChooserDialog.openFileCombo.setText( Schemes.NAMED_CLUSTER_SCHEME + "://" ); vfsFileChooserDialog.vfsBrowser.fileSystemTree.removeAll(); getNamedClusterWidget().initiate(); getNamedClusterWidget().setSelectedNamedCluster( namedCluster ); super.activate(); }
public void activate() { vfsFileChooserDialog.setRootFile( null ); vfsFileChooserDialog.setInitialFile( null ); vfsFileChooserDialog.openFileCombo.setText( "hdfs://" ); vfsFileChooserDialog.vfsBrowser.fileSystemTree.removeAll(); getNamedClusterWidget().initiate(); getNamedClusterWidget().setSelectedNamedCluster( namedCluster ); super.activate(); }