refreshCombo( );
refreshSeriesCombo( );
	public void widgetSelected( SelectionEvent e )	{		if ( e.widget.equals( btnSeriesDelete ) )		{			// Remove color registry			EList removeDefns = ( (SeriesDefinition) seriesDefns.get( cmbSeriesSelect.getSelectionIndex( ) ) ).getDesignTimeSeries( )					.getDataDefinition( );			for ( int i = 0; i < removeDefns.size( ); i++ )			{				String expression = ( (Query) removeDefns.get( i ) ).getDefinition( );				// If it's last element, remove color binding				List otherDfs = getOtherQueryDefinitions( );				if ( DataDefinitionTextManager.getInstance( )						.getNumberOfSameDataDefinition( expression ) == 1						&& !otherDfs.contains( expression ) )				{					ColorPalette.getInstance( ).retrieveColor( expression );				}			}			// Refresh table color			for ( int i = 0; i < getCustomTable( ).getColumnNumber( ); i++ )			{				getCustomTable( ).setColumnColor( i,						ColorPalette.getInstance( )								.getColor( ChartUIUtil.getExpressionString( getCustomTable( ).getColumnHeading( i ) ) ) );			}			// Remove sample data and series			removeSeriesDefinition( );			setSeriesDeleteEnabled( );			refreshCombo( );			// Selects the new item or last item			cmbSeriesSelect.select( cmbSeriesSelect.getItemCount( ) - 2 );			// Update data definition component and refresh query in it			updateDataDefinition( );			refreshQuery( );			// Sets current series index and update bottom component if needed			setSelectedSeriesIndex( );			// CHART ENGINE NOT SUPPORT MULTI-GROUPING, NO NEED TO REFRESH UI			// selectDataUI.refreshRightBindingArea( );			selectDataUI.layoutAll( );		}		else if ( e.widget.equals( cmbSeriesSelect ) )		{			// Check if needing to add a new series			if ( cmbSeriesSelect.getSelectionIndex( ) == cmbSeriesSelect.getItemCount( ) - 1 )			{				addNewSeriesDefinition( );				setSeriesDeleteEnabled( );				refreshCombo( );				// Selects the new item				cmbSeriesSelect.select( cmbSeriesSelect.getItemCount( ) - 2 );			}			// Update data definition component and refresh query in it			updateDataDefinition( );			refreshQuery( );			// Sets current series index and update bottom component if needed			setSelectedSeriesIndex( );			// CHART ENGINE NOT SUPPORT MULTI-GROUPING, NO NEED TO REFRESH UI			// selectDataUI.refreshRightBindingArea( );			selectDataUI.layoutAll( );		}	}