Program: 133692
Project: 133692
Buggy source:
/** 
 * <!-- begin-UML-doc --> <p> This operation overrides the default/abstract implementation of FormPage.createFormContents to create the contents of the ICEResourcePage. </p> <!-- end-UML-doc -->
 * @param managedForm <p> The Form widget on which the ICEResourcePage exists. </p>
 * @generated "UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)"
 */
protected void createFormContent(IManagedForm managedForm){
  final ScrolledForm form=managedForm.getForm();
  FormToolkit toolkit=managedForm.getToolkit();
  try {
    getSite().getWorkbenchWindow().getActivePage().showView(ICEResourceView.ID);
  }
 catch (  PartInitException e) {
    e.printStackTrace();
  }
  resourceView=(ICEResourceView)getSite().getWorkbenchWindow().getActivePage().findView(ICEResourceView.ID);
  resourceView.setResourceComponent(resourceComponent);
  form.getBody().setLayout(new GridLayout());
  form.getBody().setLayoutData(new GridData(GridData.FILL_BOTH));
  parent=new Composite(form.getBody(),SWT.None);
  parent.setLayoutData(new GridData(GridData.FILL_BOTH));
  layout=new StackLayout();
  parent.setLayout(layout);
  plotComposite=new Composite(parent,SWT.NONE);
  managedForm.getToolkit().adapt(plotComposite);
  managedForm.getToolkit().paintBordersFor(plotComposite);
  plotComposite.setLayout(new GridLayout(1,true));
  plotComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  drawBrowser(toolkit,managedForm);
  getSite().getPage().addSelectionListener(this);
  getSite().getWorkbenchWindow().getPartService().addPartListener(resourceView);
  return;
}

Fixed version (ground truth):
/** 
 * This operation overrides the default/abstract implementation of FormPage.createFormContents to create the contents of the ICEResourcePage.
 * @param managedForm The Form widget on which the ICEResourcePage exists.
 */
protected void createFormContent(IManagedForm managedForm){
  final ScrolledForm form=managedForm.getForm();
  FormToolkit toolkit=managedForm.getToolkit();
  try {
    getSite().getWorkbenchWindow().getActivePage().showView(ICEResourceView.ID);
  }
 catch (  PartInitException e) {
    e.printStackTrace();
  }
  resourceView=(ICEResourceView)getSite().getWorkbenchWindow().getActivePage().findView(ICEResourceView.ID);
  resourceView.setResourceComponent(resourceComponent);
  form.getBody().setLayout(new GridLayout());
  form.getBody().setLayoutData(new GridData(GridData.FILL_BOTH));
  parent=new Composite(form.getBody(),SWT.None);
  parent.setLayoutData(new GridData(GridData.FILL_BOTH));
  layout=new StackLayout();
  parent.setLayout(layout);
  parent.addDisposeListener(new DisposeListener(){
    @Override public void widgetDisposed(    DisposeEvent event){
      getSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(ICEResourcePage.this);
    }
  }
);
  plotComposite=new Composite(parent,SWT.NONE);
  managedForm.getToolkit().adapt(plotComposite);
  managedForm.getToolkit().paintBordersFor(plotComposite);
  plotComposite.setLayout(new GridLayout(1,true));
  plotComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  drawBrowser(toolkit,managedForm);
  getSite().getPage().addSelectionListener(this);
  getSite().getWorkbenchWindow().getPartService().addPartListener(resourceView);
  return;
}