/** * @param name */ public void setSelectedNamedCluster( String name ) { namedClusterWidget.setSelectedNamedCluster( name ); }
@Override public void setSelectedNamedCluster( String name ) { namedClusterWidget.setSelectedNamedCluster( name ); }
protected void getData() { m_wName.setText( Const.NVL( m_jobEntry.getName(), "" ) ); // need setSelectItem NamedCluster namedCluster = m_jobEntry.getNamedCluster(); String namedClusterName = null; if ( namedCluster != null ) { namedClusterName = namedCluster.getName(); } namedClusterWidgetImpl.setSelectedNamedCluster( namedClusterName == null ? "" : namedClusterName ); m_pigScriptText.setText( Const.NVL( m_jobEntry.getScriptFilename(), "" ) ); m_enableBlockingBut.setSelection( m_jobEntry.getEnableBlocking() ); m_localExecutionBut.setSelection( m_jobEntry.getLocalExecution() ); Map<String, String> params = m_jobEntry.getScriptParameters(); if ( params.size() > 0 ) { for ( String name : params.keySet() ) { String value = params.get( name ); TableItem item = new TableItem( m_scriptParams.table, SWT.NONE ); item.setText( 1, name ); item.setText( 2, value ); } } m_scriptParams.removeEmptyRows(); m_scriptParams.setRowNums(); m_scriptParams.optWidth( true ); setEnabledStatus(); }
@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(); }
private void getData() { namedClusterWidget.setSelectedNamedCluster( m_currentMeta.getNamedCluster().getName() ); if ( !Utils.isEmpty( m_currentMeta.getCoreConfigURL() ) ) { m_coreConfigText.setText( m_currentMeta.getCoreConfigURL() ); } if ( !Utils.isEmpty( m_currentMeta.getDefaultConfigURL() ) ) { m_defaultConfigText.setText( m_currentMeta.getDefaultConfigURL() ); } if ( !Utils.isEmpty( m_currentMeta.getTargetTableName() ) ) { m_mappedTableNamesCombo.setText( m_currentMeta.getTargetTableName() ); } if ( !Utils.isEmpty( m_currentMeta.getTargetMappingName() ) ) { m_mappingNamesCombo.setText( m_currentMeta.getTargetMappingName() ); } m_deleteRowKeyBut.setSelection( m_currentMeta.getDeleteRowKey() ); m_disableWriteToWALBut.setSelection( m_currentMeta.getDisableWriteToWAL() ); walEnabled(); if ( !Utils.isEmpty( m_currentMeta.getWriteBufferSize() ) ) { m_writeBufferSizeText.setText( m_currentMeta.getWriteBufferSize() ); } if ( Utils.isEmpty( m_currentMeta.getTargetMappingName() ) && m_currentMeta.getMapping() != null ) { m_mappingEditor.setMapping( m_currentMeta.getMapping() ); m_storeMappingInStepMetaData.setSelection( true ); } }
String ncName = meta.getSourceConfigurationName(); if ( ncName != null ) { namedClusterWidget.setSelectedNamedCluster( ncName );
private void getData() { namedClusterWidget.setSelectedNamedCluster( m_currentMeta.getNamedCluster().getName() );