@Override public NamedCluster getNamedClusterFromVfsFileChooser( Spoon spoon ) { VfsFileChooserDialog dialog = spoon.getVfsFileChooserDialog( null, null ); CustomVfsUiPanel currentPanel = dialog.getCurrentPanel(); if ( currentPanel != null && currentPanel instanceof HadoopVfsFileChooserDialog ) { HadoopVfsFileChooserDialog hadoopVfsFileChooserDialog = (HadoopVfsFileChooserDialog) currentPanel; NamedClusterWidgetImpl ncWidget = hadoopVfsFileChooserDialog.getNamedClusterWidget(); return NamedClusterBridgeImpl.fromOsgiNamedCluster( ncWidget.getSelectedNamedCluster() ); } return null; } }
protected void extractNamedClusterFromVfsFileChooser() { VfsFileChooserDialog dialog = Spoon.getInstance().getVfsFileChooserDialog( null, null ); CustomVfsUiPanel currentPanel = dialog.getCurrentPanel(); if ( currentPanel != null && currentPanel instanceof HadoopVfsFileChooserDialog ) { HadoopVfsFileChooserDialog hadoopVfsFileChooserDialog = (HadoopVfsFileChooserDialog) currentPanel; selectedNamedCluster = hadoopVfsFileChooserDialog.getNamedClusterWidget().getSelectedNamedCluster(); } if ( selectedNamedCluster != null ) { setSelectedNamedCluster( selectedNamedCluster ); } }
CustomVfsUiPanel currentPanel = fileChooserDialog.getCurrentPanel(); if ( currentPanel instanceof HadoopVfsFileChooserDialog ) { namedClusterWidget = ( (HadoopVfsFileChooserDialog) currentPanel ).getNamedClusterWidget();
CustomVfsUiPanel currentPanel = fileChooserDialog.getCurrentPanel(); if ( currentPanel instanceof HadoopVfsFileChooserDialog ) { namedClusterWidget = ( (HadoopVfsFileChooserDialog) currentPanel ).getNamedClusterWidget();