cmbComponentTypes.setItems( LiteralHelper.dataPointComponentTypeSet.getDisplayNames( ) );
String[] componentsDisplayName = LiteralHelper.dataPointComponentTypeSet.getDisplayNames( ); try {  IDataPointDefinition dpd = PluginSettings.instance( ) .getDataPointDefinition( getSeriesForProcessing( ).getClass( ) ); if ( dpd != null ) { String[] dpType = dpd.getDataPointTypes( ); String[] dpTypeDisplay = new String[dpType.length]; for ( int i = 0; i < dpType.length; i++ ) { dpTypeDisplay[i] = dpd.getDisplayText( dpType[i] ); mapDataPointNames.put( dpType[i], dpTypeDisplay[i] ); mapDataPointNames.put( dpTypeDisplay[i], dpType[i] ); } componentsDisplayName = concatenateArrays( dpTypeDisplay, componentsDisplayName ); } } catch ( ChartException e ) { WizardBase.displayException( e ); } cmbComponentTypes.setItems( componentsDisplayName );
	private void populateLists( Series series )	{		// Populate DataPoint Components List		cmbComponentTypes.setItems( LiteralHelper.dataPointComponentTypeSet.getDisplayNames( ) );		cmbComponentTypes.select( 0 );		// Populate Current list of DataPointComponents		this.lstComponents.setItems( getDataPointComponents( series.getDataPoint( ) ) );		String str = series.getDataPoint( ).getPrefix( );		this.txtPrefix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$		str = series.getDataPoint( ).getSuffix( );		this.txtSuffix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$		str = series.getDataPoint( ).getSeparator( );		this.txtSeparator.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$		// Position		int positionScope = ( getSeriesForProcessing( ) instanceof PieSeries || getSeriesForProcessing( ) instanceof BarSeries ) ? LabelAttributesComposite.ALLOW_INOUT_POSITION				: ( LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION | LabelAttributesComposite.ALLOW_VERTICAL_POSITION );		Position lpCurrent = getSeriesForProcessing( ).getLabelPosition( );		if ( positionScope == LabelAttributesComposite.ALLOW_ALL_POSITION )		{			cmbPosition.setItems( LiteralHelper.fullPositionSet.getDisplayNames( ) );			if ( lpCurrent != null )			{				if ( context.getModel( ) instanceof ChartWithAxes )				{					cmbPosition.select( LiteralHelper.fullPositionSet.getSafeNameIndex( ChartUIUtil.getFlippedPosition( lpCurrent,							isFlippedAxes( ) )							.getName( ) ) );				}				else				{					cmbPosition.select( LiteralHelper.fullPositionSet.getSafeNameIndex( lpCurrent.getName( ) ) );				}			}		}		else		{			// check vertical			if ( ( positionScope & LabelAttributesComposite.ALLOW_VERTICAL_POSITION ) != 0 )			{				if ( context.getModel( ) instanceof ChartWithAxes						&& isFlippedAxes( ) )				{					String[] ns = LiteralHelper.horizontalPositionSet.getDisplayNames( );					for ( int i = 0; i < ns.length; i++ )					{						cmbPosition.add( ns[i] );					}				}				else				{					String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( );					for ( int i = 0; i < ns.length; i++ )					{						cmbPosition.add( ns[i] );					}				}			}			// check horizontal			if ( ( positionScope & LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION ) != 0 )			{				if ( context.getModel( ) instanceof ChartWithAxes						&& isFlippedAxes( ) )				{					String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( );					for ( int i = 0; i < ns.length; i++ )					{						cmbPosition.add( ns[i] );					}				}				else				{					String[] ns = LiteralHelper.horizontalPositionSet.getDisplayNames( );					for ( int i = 0; i < ns.length; i++ )					{						cmbPosition.add( ns[i] );					}				}			}			// check inout			if ( ( positionScope & LabelAttributesComposite.ALLOW_INOUT_POSITION ) != 0 )			{				if ( ( getSeriesForProcessing( ) instanceof BarSeries )						&& ( getContext( ).getModel( ).getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL ) )				{					cmbPosition.add( LiteralHelper.inoutPositionSet.getDisplayNameByName( Position.OUTSIDE_LITERAL.getName( ) ) );				}				else				{					String[] ns = LiteralHelper.inoutPositionSet.getDisplayNames( );					for ( int i = 0; i < ns.length; i++ )					{						cmbPosition.add( ns[i] );					}				}			}			if ( lpCurrent != null )			{				String positionName = null;				if ( context.getModel( ) instanceof ChartWithAxes )				{					positionName = ChartUIUtil.getFlippedPosition( lpCurrent,							isFlippedAxes( ) ).getName( );				}				else				{					positionName = lpCurrent.getName( );				}				for ( int i = 0; i < cmbPosition.getItemCount( ); i++ )				{					if ( positionName.equals( LiteralHelper.fullPositionSet.getNameByDisplayName( cmbPosition.getItem( i ) ) ) )					{						cmbPosition.select( i );					}				}			}		}	}