popupSheet = new MoreOptionsChartLegendSheet( popupShell, getContext( ) );
popupSheet = new LegendLayoutSheet( popupShell, getContext( ) );
	public void widgetSelected( SelectionEvent e )	{		// detach popup dialogue		if ( detachPopup( e.widget ) )		{			return;		}		if ( e.widget instanceof Button				&& ( ( (Button) e.widget ).getStyle( ) & SWT.TOGGLE ) == SWT.TOGGLE				&& ( (Button) e.widget ).getSelection( ) )		{			selectAllButtons( false );			( (Button) e.widget ).setSelection( true );		}		if ( e.widget.equals( btnTitleVisible ) )		{			getChart( ).getLegend( )					.getTitle( )					.setVisible( ( (Button) e.widget ).getSelection( ) );			txtTitle.setEnabled( getChart( ).getLegend( )					.getTitle( )					.isVisible( ) );			refreshPopupSheet( );		}		else if ( e.widget.equals( btnShowValue ) )		{			getChart( ).getLegend( )					.setShowValue( ( (Button) e.widget ).getSelection( ) );		}		else if ( e.widget.equals( btnAreaProp ) )		{			popupShell = createPopupShell( );			popupSheet = new MoreOptionsChartLegendSheet( popupShell,					getContext( ) );			getWizard( ).attachPopup( Messages.getString( "ChartLegendSheetImpl.Title.LayoutLegend" ), -1, -1 ); //$NON-NLS-1$		}		else if ( e.widget.equals( btnLegendText ) )		{			popupShell = createPopupShell( );			popupSheet = new LegendTextSheet( popupShell, getContext( ) );			getWizard( ).attachPopup( Messages.getString( "ChartLegendSheetImpl.Title.FormatLegendText" ), -1, -1 ); //$NON-NLS-1$		}	}