Bug 200473 Microsoft JScript compilation error pops up when click pie slice [13]
chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ChartReportItemBuilderImpl.java
if ( item == null )
			{
				logger.log( ILogger.ERROR,
						Messages.getString( "ChartReportItemBuilderImpl.log.UnableToLocate" ) ); 
				return Window.CANCEL;
			}
			final CommandStack commandStack = eih.getRoot( ).getCommandStack( );
			final String TRANS_NAME = "chart builder internal transaction"; 
			commandStack.startTrans( TRANS_NAME );
			final ChartReportItemImpl crii = ( (ChartReportItemImpl) item );
			final Chart cm = (Chart) crii.getProperty( "chart.instance" ); 
			final Chart cmClone = ( cm == null ) ? null
					: (Chart) EcoreUtil.copy( cm );
			
			
			final Object[] applyData = new Object[2];
			
			
			this.extendedHandle = eih;
			
			Shell parentShell = null;
			if ( PlatformUI.isWorkbenchRunning( ) )
			{
				parentShell = PlatformUI.getWorkbench( )
						.getDisplay( )
						.getActiveShell( );
			}
			final ChartWizard chartBuilder = new ChartWizard( parentShell );
			final ChartWizardContext context = new ChartWizardContext( cmClone );
			chartBuilder.addCustomButton( new ApplyButtonHandler( chartBuilder ) {