Bug 191201 Legend Block Outline is set in Layout [0001]
Description: Legend Block Outline is set in Layout. Build number: 2.2.0.v20070606-0630 Steps to reproduce: 1. New a chart, tick Legend->Layout->Outline Visible. 2. Select the chart, input script: function afterDrawBlock(block, icsc) { importPackage(Packages.java.lang); if (block.isLegend()) { if (block.getOutline( ).isVisible()==true) System.out.println("Visible"); else System.out.println("Invisible"); } } 3. Preview. Expected result: When tick Legend->Layout->Outline Visible and input the script, system print "Visible". Actual result: System print "Visible". Error log: N/A
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/chart/ChartLegendSheetImpl.java
if ( isRegistered( e.widget ) )
		{
			attachPopup( ( (Button) e.widget ).getText( ) );
		}
		if ( e.widget.equals( btnVisible ) )
		{
			getChart( ).getLegend( ).setVisible( btnVisible.getSelection( ) );
			boolean enabled = btnVisible.getSelection( );
			
			if ( !enabled && isButtonSelected( ) )
			{
				detachPopup( );
			}
			
			setState( enabled );
		}
		else if ( e.widget.equals( btnTitleVisible ) )
		{
			btnLegendTitle.setEnabled( btnTitleVisible.getSelection( ) );
			getChart( ).getLegend( )
					.getTitle( )
					.setVisible( ( (Button) e.widget ).getSelection( ) );
			txtTitle.setEnabled( getChart( ).getLegend( )
					.getTitle( )
					.isVisible( ) );
			if ( !btnTitleVisible.getSelection( )
					&& btnLegendTitle.getSelection( ) )
			{
				btnLegendTitle.setSelection( false );
				detachPopup( );