Object[] oMarkers = MarkerType.VALUES.toArray( ); for ( int i = 0; i < oMarkers.length; i++ ) { cmbMarkerTypes.add( ( (MarkerType) oMarkers[i] ).getName( ) ); if ( oMarkers[i].equals( ( (LineSeries) series ).getMarker( ) .getType( ) ) ) { cmbMarkerTypes.select( i ); } } if ( cmbMarkerTypes.getSelectionIndex( ) == -1 ) { cmbMarkerTypes.select( 0 ); }
NameSet ns = LiteralHelper.markerTypeSet; cmbMarkerTypes.setItems( ns.getDisplayNames( ) ); cmbMarkerTypes.select( ns.getSafeNameIndex( ( (LineSeries) series ).getMarker( ) .getType( ) .getName( ) ) );
	private void populateLists( )	{		Object[] oMarkers = MarkerType.VALUES.toArray( );		for ( int i = 0; i < oMarkers.length; i++ )		{			cmbMarkerTypes.add( ( (MarkerType) oMarkers[i] ).getName( ) );			if ( oMarkers[i].equals( ( (LineSeries) series ).getMarker( )					.getType( ) ) )			{				cmbMarkerTypes.select( i );			}		}		if ( cmbMarkerTypes.getSelectionIndex( ) == -1 )		{			cmbMarkerTypes.select( 0 );		}	}