Label lblSorting = new Label( cmpGroup, SWT.NONE ); lblSorting.setText( Messages.getString( "BaseSeriesDataSheetImpl.Lbl.DataSorting" ) );  final Combo cmbSorting = new Combo( cmpGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); cmbSorting.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );   cmbSorting.add( UNSORTED_OPTION ); String[] nss = LiteralHelper.sortOptionSet.getDisplayNames( ); for ( int i = 0; i < nss.length; i++ ) { cmbSorting.add( nss[i] ); }   if ( !sd.eIsSet( DataPackage.eINSTANCE.getSeriesDefinition_Sorting( ) ) ) { cmbSorting.select( 0 ); } else {  cmbSorting.select( LiteralHelper.sortOptionSet.getNameIndex( sd.getSorting( ) .getName( ) ) + 1 ); } cmbSorting.addListener( SWT.Selection, new Listener( ) {  public void handleEvent( Event event ) { if ( cmbSorting.getText( ).equals( UNSORTED_OPTION ) ) { sd.eUnset( DataPackage.eINSTANCE.getSeriesDefinition_Sorting( ) ); } else { sd.setSorting( SortOption.getByName( LiteralHelper.sortOptionSet.getNameByDisplayName( cmbSorting.getText( ) ) ) ); }   ChartAdapter.changeChartWithoutNotification( new IChangeWithoutNotification( ) {  public Object run( ) { List sds = ChartUIUtil.getAllOrthogonalSeriesDefinitions( context.getModel( ) ); for ( int i = 0; i < sds.size( ); i++ ) { if ( i != 0 ) {   SeriesDefinition sdf = (SeriesDefinition) sds.get( i ); if ( cmbSorting.getText( ) .equals( UNSORTED_OPTION ) ) { sdf.eUnset( DataPackage.eINSTANCE.getSeriesDefinition_Sorting( ) ); } else { sdf.setSorting( SortOption.getByName( LiteralHelper.sortOptionSet.getNameByDisplayName( cmbSorting.getText( ) ) ) ); } } } return null; } } ); } } );
			public Composite createArea( Composite parent )			{				cmpGroup = ChartUIUtil.createCompositeWrapper( parent );				cmpGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );				lblRightYGrouping = new Label( cmpGroup, SWT.WRAP );				{					GridData gd = new GridData( );					gd.widthHint = getStandardWidth( ) * 16;					lblRightYGrouping.setLayoutData( gd );					lblRightYGrouping.setText( strDesc );				}				int selectedSeriesIndex = 0;				if ( !useFirstOnly )				{					selectedSeriesIndex = selectDataUI.getSeriesIndex( )[axisIndex];				}				if ( seriesDefn != null && !seriesDefn.isEmpty( ) )				{					// Only display current selected series					ISelectDataComponent subUI = selectDataUI.getAreaComponent( ISelectDataCustomizeUI.GROUPING_SERIES,							( (SeriesDefinition) seriesDefn.get( selectedSeriesIndex ) ),							context,							sTitle );					subUI.addListener( MultipleSeriesComponent.this );					subUI.createArea( cmpGroup );					components.add( subUI );				}				return cmpGroup;			}