@SuppressWarnings( { "unchecked", "rawtypes" } ) public void selectDatabase( XulMenuList wConnection, String name ) { wConnection.setSelectedItem( wConnection ); }
DatabaseInterface databaseInterface = meta.getDatabaseInterface(); if ( databaseInterface instanceof GenericDatabaseMeta ) { databaseDialectList.setSelectedItem( ( (GenericDatabaseMeta) databaseInterface).getDatabaseDialect() );
protected void setSelectedItemForEachMenu() { getXulMenu( XUL_EC2_ROLE ).setSelectedItem( getJobEntry().getEc2Role() ); getXulMenu( XUL_EMR_ROLE ).setSelectedItem( getJobEntry().getEmrRole() ); getXulMenu( XUL_MASTER_INSTANCE_TYPE ).setSelectedItem( getJobEntry().getMasterInstanceType() ); getXulMenu( XUL_SLAVE_INSTANCE_TYPE ).setSelectedItem( getJobEntry().getSlaveInstanceType() ); }
public void selectNamedCluster( String configName ) { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedConfigMenu = (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" ); for ( NamedCluster nc : getNamedClusters() ) { if ( configName != null && configName.equals( nc.getName() ) ) { namedConfigMenu.setSelectedItem( nc ); } } }
protected void initializeEc2RoleSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> ec2RoleMenu = getXulMenu( XUL_EC2_ROLE ); String selectedEc2Role = getJobEntry().getEc2Role(); ec2RoleMenu.setSelectedItem( selectedEc2Role ); }
protected void initializeReleaseSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> namedClusterMenu = getXulMenu( XUL_EMR_RELEASE ); String selectedRelease = getJobEntry().getEmrRelease(); namedClusterMenu.setSelectedItem( selectedRelease ); }
public void selectNamedCluster( String configName ) { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedConfigMenu = (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" ); //$NON-NLS-1$ for ( NamedCluster nc : getNamedClusters() ) { if ( configName != null && configName.equals( nc.getName() ) ) { namedConfigMenu.setSelectedItem( nc ); } } }
protected void initializeEmrRoleSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> emrRoleMenu = getXulMenu( XUL_EMR_ROLE ); String selectedEmrRole = getJobEntry().getEmrRole(); emrRoleMenu.setSelectedItem( selectedEmrRole ); }
protected void initializeMasterInstanceSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> namedClusterMenu = getXulMenu( XUL_MASTER_INSTANCE_TYPE ); String selectedMasterInstanceType = getJobEntry().getMasterInstanceType(); namedClusterMenu.setSelectedItem( selectedMasterInstanceType ); }
protected void initializeSlaveInstanceSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> namedClusterMenu = getXulMenu( XUL_SLAVE_INSTANCE_TYPE ); String selectedSlaveInstanceType = getJobEntry().getSlaveInstanceType(); namedClusterMenu.setSelectedItem( selectedSlaveInstanceType ); }
protected void initializeRegionSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<String> namedClusterMenu = getXulMenu( XUL_REGION ); String selectedRegion = getJobEntry().getRegion(); namedClusterMenu.setSelectedItem( selectedRegion ); }
private void selectNamedCluster( String clusterName ) throws MetaStoreException { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedClusterMenu = (XulMenuList<NamedCluster>) getXulDomContainer().getDocumentRoot() .getElementById( "named-clusters" ); for ( NamedCluster nc : getNamedClusters() ) { if ( clusterName != null && clusterName.equals( nc.getName() ) ) { namedClusterMenu.setSelectedItem( nc ); aConf.setSelectedNamedCluster( nc ); } } }
private void selectNamedCluster() throws MetaStoreException { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedClusterMenu = (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" ); //$NON-NLS-1$ String cn = null; NamedCluster namedCluster = jobEntry.getNamedCluster(); if ( namedCluster != null ) { cn = namedCluster.getName(); } for ( NamedCluster nc : controller.getNamedClusters() ) { if ( cn != null && cn.equals( nc.getName() ) ) { namedClusterMenu.setSelectedItem( nc ); controller.setSelectedNamedCluster( nc ); } } }
private void selectNamedCluster() { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedClusterMenu = (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" ); //$NON-NLS-1$ NamedCluster namedCluster = jobEntry.getNamedCluster(); if ( namedCluster != null && isKnownNamedCluster( namedCluster, controller ) ) { namedClusterMenu.setSelectedItem( namedCluster ); controller.getAdvancedConfiguration().setSelectedNamedCluster( namedCluster ); } }
protected void initializeNamedClusterSelection() { @SuppressWarnings( "unchecked" ) XulMenuList<NamedCluster> namedClusterMenu = (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" ); //$NON-NLS-1$ try { String cn = config.getClusterName(); if ( cn != null ) { NamedCluster namedCluster = jobEntry.getNamedClusterService().read( cn, getMetaStore() ); namedClusterMenu.setSelectedItem( namedCluster ); setSelectedNamedCluster( namedCluster ); } else if ( config.isAdvancedClusterConfigSet() ) { setSelectedNamedCluster( USE_ADVANCED_OPTIONS_CLUSTER ); } else { setSelectedNamedCluster( CHOOSE_AVAILABLE_CLUSTER ); } } catch ( MetaStoreException e ) { jobEntry.logError( e.getMessage() ); } }
public void init() throws Throwable { workingStepname = stepname; metaMapper = new HadoopEnterMetaMapper(); metaMapper.loadMeta( (HadoopEnterMeta) baseStepMeta ); bf.setBindingType( Binding.Type.ONE_WAY ); setTextBoxValue( "input-key-length", metaMapper.getInKeyLength() ); setTextBoxValue( "input-key-precision", metaMapper.getInKeyPrecision() ); setTextBoxValue( "input-value-length", metaMapper.getInValueLength() ); setTextBoxValue( "input-value-precision", metaMapper.getInValuePrecision() ); bf.createBinding( "step-name", "value", this, "stepName" ); bf.createBinding( this, "stepName", "step-name", "value" ).fireSourceChanged(); bf.createBinding( this, "types", "input-key-type", "elements" ).fireSourceChanged(); bf.createBinding( this, "types", "input-value-type", "elements" ).fireSourceChanged(); if ( metaMapper.getInKeyType() >= 0 ) { ( (XulMenuList<String>) getXulDomContainer().getDocumentRoot().getElementById( "input-key-type" ) ) .setSelectedItem( ValueMeta.getTypeDesc( metaMapper.getInKeyType() ) ); } if ( metaMapper.getInValueType() >= 0 ) { ( (XulMenuList<String>) getXulDomContainer().getDocumentRoot().getElementById( "input-value-type" ) ) .setSelectedItem( ValueMeta.getTypeDesc( metaMapper.getInValueType() ) ); } }