public void refreshTree( String folderName ) { selectionTreeManager.update( folderName ); refreshTree(); }
public void execute() { spoon.getTreeManager().update( HadoopClusterFolderProvider.STRING_NAMED_CLUSTERS ); ncDelegate.editNamedCluster( spoon.metaStore, selectedNamedCluster, spoon.getShell() ); } }
public void execute() { spoon.getTreeManager().update( HadoopClusterFolderProvider.STRING_NAMED_CLUSTERS ); ncDelegate.dupeNamedCluster( spoon.metaStore, selectedNamedCluster, spoon.getShell() ); } }
private void editNamedCluster( SelectionTreeExtension selectionTreeExtension ) throws KettleException { Object selection = selectionTreeExtension.getSelection(); if ( selection instanceof NamedCluster ) { NamedCluster selectedNamedCluster = (NamedCluster) selection; try { spoon.getTreeManager().update( HadoopClusterFolderProvider.STRING_NAMED_CLUSTERS ); ncDelegate.get().editNamedCluster( spoon.metaStore, selectedNamedCluster, spoon.getShell() ); } catch ( InterruptedException e ) { throw new KettleException( "Interrupted while waiting on " + HadoopClusterDelegate.class.getCanonicalName(), e ); } catch ( ExecutionException e ) { throw new KettleException( "Execution exception getting " + HadoopClusterDelegate.class.getCanonicalName(), e ); } } }
public void execute() { VariableSpace vs = null; if ( spoon.getActiveMeta() instanceof TransMeta ) { vs = spoon.getActiveTransformation(); } else { vs = spoon.getActiveJob(); } spoon.getTreeManager().update( HadoopClusterFolderProvider.STRING_NAMED_CLUSTERS ); ncDelegate.newNamedCluster( vs, spoon.metaStore, spoon.getShell() ); } }
public void execute() { String title = BaseMessages.getString( PKG, "PopupMenuFactory.NAMEDCLUSTERS.DeleteNamedClusterAsk.Title" ); String message = BaseMessages.getString( PKG, "PopupMenuFactory.NAMEDCLUSTERS.DeleteNamedClusterAsk.Message", selectedNamedCluster.getName() ); String deleteButton = BaseMessages.getString( PKG, "PopupMenuFactory.NAMEDCLUSTERS.DeleteNamedClusterAsk.Delete" ); String doNotDeleteButton = BaseMessages.getString( PKG, "PopupMenuFactory.NAMEDCLUSTERS.DeleteNamedClusterAsk.DoNotDelete" ); MessageDialog dialog = new MessageDialog( spoon.getShell(), title, null, message, MessageDialog.WARNING, new String[] { deleteButton, doNotDeleteButton }, 0 ); int response = dialog.open(); if ( response != RESULT_YES ) { return; } spoon.getTreeManager().update( HadoopClusterFolderProvider.STRING_NAMED_CLUSTERS ); ncDelegate.delNamedCluster( spoon.metaStore, selectedNamedCluster ); } }