getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) .getLabel( ) .setVisible( cbVisible.getSelection( ) );
refreshPopupSheet( ); } else if ( e.widget.equals( cbDecoVisible ) ) { ( (GanttSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ).getDecorationLabel( ) .setVisible( cbDecoVisible.getSelection( ) );
	public void widgetSelected( SelectionEvent e )	{		// Detach popup dialog if there's selected popup button.		if ( detachPopup( e.widget ) )		{			return;		}		if ( isRegistered( e.widget ) )		{			attachPopup( ( (Button) e.widget ).getText( ) );		}		if ( e.widget.equals( btnShowLine ) )		{			btnTrendline.setEnabled( btnShowLine.getSelection( ) );			if ( btnShowLine.getSelection( ) )			{				CurveFitting cf = CurveFittingImpl.create( );				cf.eAdapters( )						.addAll( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )								.eAdapters( ) );				getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )						.setCurveFitting( cf );			}			else			{				getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )						.setCurveFitting( null );				// Close trendline popup				if ( btnTrendline.getSelection( ) )				{					btnTrendline.setSelection( false );					detachPopup( btnTrendline );				}			}		}		else if ( e.widget.equals( cbVisible ) )		{			if ( isMeterSeries( ) )			{				( (DialSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ).getDial( )						.getLabel( )						.setVisible( cbVisible.getSelection( ) );			}			else			{				getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )						.getLabel( )						.setVisible( cbVisible.getSelection( ) );			}			getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )					.getLabel( )					.setVisible( cbVisible.getSelection( ) );			refreshPopupSheet( );		}	}