Program: 140224
Project: 140224
Buggy source:
public void createPreviewCharts(final ScrolledForm form,final Composite composite,final boolean isCreate){
  List<Composite> previewChartList=new ArrayList<Composite>();
  for (  final ColumnIndicator columnIndicator : this.treeViewer.getColumnIndicator()) {
    final TdColumn column=columnIndicator.getTdColumn();
    ExpandableComposite exComp=toolkit.createExpandableComposite(composite,ExpandableComposite.TREE_NODE | ExpandableComposite.CLIENT_INDENT);
    exComp.setText("String_Node_Str" + column.getName());
    exComp.setLayout(new GridLayout());
    exComp.setData(columnIndicator);
    previewChartList.add(exComp);
    final Composite comp=toolkit.createComposite(exComp);
    comp.setLayout(new GridLayout());
    comp.setLayoutData(new GridData(GridData.FILL_BOTH));
    if (columnIndicator.getIndicators().length != 0) {
      IRunnableWithProgress rwp=new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          monitor.beginTask("String_Node_Str" + column.getName(),IProgressMonitor.UNKNOWN);
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              for (              ChartWithData chartData : IndicatorChartFactory.createChart(columnIndicator,isCreate)) {
                final JFreeChart chart=chartData.getChart();
                if (chart != null) {
                  Composite frameComp=toolkit.createComposite(composite,SWT.EMBEDDED);
                  frameComp.setLayout(new GridLayout());
                  GridData gd=new GridData();
                  gd.heightHint=230;
                  gd.widthHint=460;
                  if (chartData.getChartType() == EIndicatorChartType.SUMMARY_STATISTICS) {
                    gd=new GridData();
                    gd.heightHint=500;
                    gd.widthHint=150;
                  }
                  frameComp.setLayoutData(gd);
                  Frame frame=SWT_AWT.new_Frame(frameComp);
                  frame.setLayout(new java.awt.GridLayout());
                  frame.add(new ChartPanel(chart));
                  frame.validate();
                }
              }
            }
          }
);
          monitor.done();
        }
      }
;
      try {
        new ProgressMonitorDialog(getSite().getShell()).run(true,false,rwp);
      }
 catch (      Exception ex) {
        ex.printStackTrace();
      }
    }
    exComp.addExpansionListener(new ExpansionAdapter(){
      @Override public void expansionStateChanged(      ExpansionEvent e){
        getChartComposite().layout();
        form.reflow(true);
      }
    }
);
    exComp.setExpanded(true);
    exComp.setClient(comp);
  }
  if (!previewChartList.isEmpty()) {
    this.previewChartCompsites=previewChartList.toArray(new Composite[previewChartList.size()]);
  }
}

Fixed version (ground truth):
public void createPreviewCharts(final ScrolledForm form,final Composite composite,final boolean isCreate){
  List<Composite> previewChartList=new ArrayList<Composite>();
  for (  final ColumnIndicator columnIndicator : this.treeViewer.getColumnIndicator()) {
    final TdColumn column=columnIndicator.getTdColumn();
    ExpandableComposite exComp=toolkit.createExpandableComposite(composite,ExpandableComposite.TREE_NODE | ExpandableComposite.CLIENT_INDENT);
    exComp.setText("String_Node_Str" + column.getName());
    exComp.setLayout(new GridLayout());
    exComp.setData(columnIndicator);
    previewChartList.add(exComp);
    final Composite comp=toolkit.createComposite(exComp);
    comp.setLayout(new GridLayout());
    comp.setLayoutData(new GridData(GridData.FILL_BOTH));
    if (columnIndicator.getIndicators().length != 0) {
      IRunnableWithProgress rwp=new IRunnableWithProgress(){
        public void run(        final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          monitor.beginTask("String_Node_Str" + column.getName(),IProgressMonitor.UNKNOWN);
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              for (              ChartWithData chartData : IndicatorChartFactory.createChart(columnIndicator,isCreate)) {
                final JFreeChart chart=chartData.getChart();
                if (chart != null) {
                  Composite frameComp=toolkit.createComposite(comp,SWT.EMBEDDED);
                  frameComp.setLayout(new GridLayout());
                  GridData gd=new GridData();
                  gd.heightHint=230;
                  gd.widthHint=460;
                  if (chartData.getChartType() == EIndicatorChartType.SUMMARY_STATISTICS && chartData.getEnity().length == 6) {
                    gd=new GridData();
                    gd.heightHint=400;
                    gd.widthHint=150;
                  }
                  frameComp.setLayoutData(gd);
                  Frame frame=SWT_AWT.new_Frame(frameComp);
                  frame.setLayout(new java.awt.GridLayout());
                  frame.add(new ChartPanel(chart));
                  frame.validate();
                }
              }
            }
          }
);
          monitor.done();
        }
      }
;
      try {
        new ProgressMonitorDialog(getSite().getShell()).run(true,false,rwp);
      }
 catch (      Exception ex) {
        ex.printStackTrace();
      }
    }
    exComp.addExpansionListener(new ExpansionAdapter(){
      @Override public void expansionStateChanged(      ExpansionEvent e){
        getChartComposite().layout();
        form.reflow(true);
      }
    }
);
    exComp.setExpanded(true);
    exComp.setClient(comp);
  }
  if (!previewChartList.isEmpty()) {
    this.previewChartCompsites=previewChartList.toArray(new Composite[previewChartList.size()]);
  }
}