Object[] oRisers = RiserType.VALUES.toArray( ); for ( int i = 0; i < oRisers.length; i++ ) { this.cmbRiserTypes.add( ( (RiserType) oRisers[i] ).getName( ) ); if ( oRisers[i].equals( ( (BarSeries) series ).getRiser( ) ) ) { cmbRiserTypes.select( i ); } } if ( cmbRiserTypes.getSelectionIndex( ) == -1 ) { cmbRiserTypes.select( 0 ); }
NameSet ns = LiteralHelper.riserTypeSet; cmbRiserTypes.setItems( ns.getDisplayNames( ) ); cmbRiserTypes.select( ns.getSafeNameIndex( ( (BarSeries) series ).getRiser( ) .getName( ) ) );
	private void populateLists( )	{		Object[] oRisers = RiserType.VALUES.toArray( );		for ( int i = 0; i < oRisers.length; i++ )		{			this.cmbRiserTypes.add( ( (RiserType) oRisers[i] ).getName( ) );			if ( oRisers[i].equals( ( (BarSeries) series ).getRiser( ) ) )			{				cmbRiserTypes.select( i );			}		}		if ( cmbRiserTypes.getSelectionIndex( ) == -1 )		{			cmbRiserTypes.select( 0 );		}	}