else if(event.widget.equals( btnFormatSpecifier )) { FormatSpecifierDialog editor = new FormatSpecifierDialog( cmpContent.getShell( ), getBaseSeriesDefinition( ).getFormatSpecifier( ), Messages.getString( "BaseDataDefinitionComponent.Text.EditFormat" ) ); if ( editor.open( ) == Window.OK ) { getBaseSeriesDefinition( ).setFormatSpecifier( editor.getFormatSpecifier( ) ); fsp.updatePreview( editor.getFormatSpecifier( ) ); } }
	public void handleEvent( Event event )	{		if ( event.widget.equals( lacTitle ) )		{			switch ( event.type )			{				case LabelAttributesComposite.VISIBILITY_CHANGED_EVENT :					getLegend( ).getTitle( )							.setVisible( ( (Boolean) event.data ).booleanValue( ) );					break;				case LabelAttributesComposite.POSITION_CHANGED_EVENT :					getLegend( ).setTitlePosition( (Position) event.data );					break;				case LabelAttributesComposite.FONT_CHANGED_EVENT :					getLegend( ).getTitle( )							.getCaption( )							.setFont( (FontDefinition) ( (Object[]) event.data )[0] );					getLegend( ).getTitle( )							.getCaption( )							.setColor( (ColorDefinition) ( (Object[]) event.data )[1] );					break;				case LabelAttributesComposite.BACKGROUND_CHANGED_EVENT :					getLegend( ).getTitle( ).setBackground( (Fill) event.data );					break;				case LabelAttributesComposite.SHADOW_CHANGED_EVENT :					getLegend( ).getTitle( )							.setShadowColor( (ColorDefinition) event.data );					break;				case LabelAttributesComposite.OUTLINE_STYLE_CHANGED_EVENT :					getLegend( ).getTitle( )							.getOutline( )							.setStyle( (LineStyle) event.data );					break;				case LabelAttributesComposite.OUTLINE_WIDTH_CHANGED_EVENT :					getLegend( ).getTitle( )							.getOutline( )							.setThickness( ( (Integer) event.data ).intValue( ) );					break;				case LabelAttributesComposite.OUTLINE_COLOR_CHANGED_EVENT :					getLegend( ).getTitle( )							.getOutline( )							.setColor( (ColorDefinition) event.data );					break;				case LabelAttributesComposite.OUTLINE_VISIBILITY_CHANGED_EVENT :					getLegend( ).getTitle( )							.getOutline( )							.setVisible( ( (Boolean) event.data ).booleanValue( ) );					break;				case LabelAttributesComposite.INSETS_CHANGED_EVENT :					getLegend( ).getTitle( ).setInsets( (Insets) event.data );					break;			}		}		else if ( event.widget.equals( fdcFont ) )		{			getLegend( ).getText( )					.setFont( (FontDefinition) ( (Object[]) event.data )[0] );			getLegend( ).getText( )					.setColor( (ColorDefinition) ( (Object[]) event.data )[1] );		}		else if ( event.widget.equals( fccShadow ) )		{			getLegend( ).getClientArea( )					.setShadowColor( (ColorDefinition) event.data );		}		else if ( event.widget.equals( icText ) )		{			getLegend( ).getClientArea( ).setInsets( (Insets) event.data );		}		else if ( event.widget.equals( outlineText ) )		{			switch ( event.type )			{				case LineAttributesComposite.STYLE_CHANGED_EVENT :					getLegend( ).getClientArea( )							.getOutline( )							.setStyle( (LineStyle) event.data );					break;				case LineAttributesComposite.WIDTH_CHANGED_EVENT :					getLegend( ).getClientArea( )							.getOutline( )							.setThickness( ( (Integer) event.data ).intValue( ) );					break;				case LineAttributesComposite.COLOR_CHANGED_EVENT :					getLegend( ).getClientArea( )							.getOutline( )							.setColor( (ColorDefinition) event.data );					break;				case LineAttributesComposite.VISIBILITY_CHANGED_EVENT :					getLegend( ).getClientArea( )							.getOutline( )							.setVisible( ( (Boolean) event.data ).booleanValue( ) );					break;			}		}		else if ( event.widget.equals( lineSeparator ) )		{			switch ( event.type )			{				case LineAttributesComposite.STYLE_CHANGED_EVENT :					getLegend( ).getSeparator( )							.setStyle( (LineStyle) event.data );					break;				case LineAttributesComposite.WIDTH_CHANGED_EVENT :					getLegend( ).getSeparator( )							.setThickness( ( (Integer) event.data ).intValue( ) );					break;				case LineAttributesComposite.COLOR_CHANGED_EVENT :					getLegend( ).getSeparator( )							.setColor( (ColorDefinition) event.data );					break;				case LineAttributesComposite.VISIBILITY_CHANGED_EVENT :					getLegend( ).getSeparator( )							.setVisible( ( (Boolean) event.data ).booleanValue( ) );					break;			}		}	}