Program: 186013
Project: 186013
Buggy source:
protected void createFieldAreas(Composite parent){
  JavaTextControl nameControl=new JavaTextControl(ControlTypes.NAME,getOffsetLabelLocation(),suggestionName);
  nameControl.createControlArea(parent);
  nameControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.NAME,suggestionName){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        suggestionName=(String)selection;
      }
    }
  }
);
  JavaTypeBrowsingControl declaringTypeControl=new JavaTypeBrowsingControl(ControlTypes.DECLARING_TYPE,getOffsetLabelLocation(),declaringTypeName,getJavaProject()){
    protected IValueCheckingRule getCachedValidationRule(){
      return new JavaValidTypeRule(getJavaProject());
    }
  }
;
  declaringTypeControl.createControlArea(parent);
  declaringTypeControl.setEnabled(true);
  declaringTypeControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.DECLARING_TYPE,declaringTypeName){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        declaringTypeName=(String)selection;
      }
    }
  }
);
  JavaTypeBrowsingControl suggestionTypeControl=new JavaTypeBrowsingControl(ControlTypes.TYPE,getOffsetLabelLocation(),suggestionType,getJavaProject());
  suggestionTypeControl.createControlArea(parent);
  suggestionTypeControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.TYPE,suggestionType){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        suggestionType=(String)selection;
      }
    }
  }
);
  ButtonDialogueControl isStaticButton=new ButtonDialogueControl(ControlTypes.IS_STATIC,SWT.CHECK,isStatic);
  isStaticButton.createControlArea(parent);
  isStaticButton.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof Boolean) {
        isStatic=((Boolean)selection).booleanValue();
      }
    }
  }
);
  ControlTypes defaultSuggestionTypeButton=isMethod ? ControlTypes.METHOD : ControlTypes.PROPERTY;
  RadioSelectionDialogueControl radioSelection=new RadioSelectionDialogueControl(new IDialogueControlDescriptor[]{ControlTypes.PROPERTY,ControlTypes.METHOD},defaultSuggestionTypeButton);
  radioSelection.createControlArea(parent);
  table=new MethodArgumentTable(getJavaProject(),initialParameters,useNamedArguments);
  table.createControlArea(parent);
  if (!isMethod) {
    table.setEnabled(false);
  }
  table.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (event.getControlDescriptor() == ControlTypes.USE_NAMED_ARGUMENTS && selection instanceof Boolean) {
        useNamedArguments=((Boolean)selection).booleanValue();
      }
    }
  }
);
  radioSelection.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      IDialogueControlDescriptor descriptor=event.getControlDescriptor();
      if (descriptor == ControlTypes.PROPERTY) {
        table.setEnabled(false);
        isMethod=false;
      }
 else       if (descriptor == ControlTypes.METHOD) {
        table.setEnabled(true);
        isMethod=true;
      }
    }
  }
);
}

Fixed version (ground truth):
protected void createFieldAreas(Composite parent){
  JavaTextControl nameControl=new JavaTextControl(ControlTypes.NAME,getOffsetLabelLocation(),suggestionName);
  nameControl.createControlArea(parent);
  nameControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.NAME,suggestionName){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        suggestionName=(String)selection;
      }
    }
  }
);
  JavaTypeBrowsingControl declaringTypeControl=new JavaTypeBrowsingControl(ControlTypes.DECLARING_TYPE,getOffsetLabelLocation(),declaringTypeName,getJavaProject()){
    protected IValueCheckingRule getCachedValidationRule(){
      return new JavaValidTypeRule(getJavaProject());
    }
  }
;
  declaringTypeControl.createControlArea(parent);
  declaringTypeControl.setEnabled(true);
  declaringTypeControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.DECLARING_TYPE,declaringTypeName){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        declaringTypeName=(String)selection;
      }
    }
  }
);
  JavaTypeBrowsingControl suggestionTypeControl=new JavaTypeBrowsingControl(ControlTypes.TYPE,getOffsetLabelLocation(),suggestionType,getJavaProject()){
    protected ValueStatus isControlValueValid(    String value){
      if (value == null || value.length() == 0) {
        return ValueStatus.getValidStatus(value);
      }
      return super.isControlValueValid(value);
    }
  }
;
  suggestionTypeControl.createControlArea(parent);
  suggestionTypeControl.addSelectionListener(new ValidatedValueSelectionListener(){
    protected void handleValidatedValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        suggestionType=(String)selection;
      }
    }
  }
);
  ButtonDialogueControl isStaticButton=new ButtonDialogueControl(ControlTypes.IS_STATIC,SWT.CHECK,isStatic);
  isStaticButton.createControlArea(parent);
  isStaticButton.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof Boolean) {
        isStatic=((Boolean)selection).booleanValue();
      }
    }
  }
);
  ControlTypes defaultSuggestionTypeButton=isMethod ? ControlTypes.METHOD : ControlTypes.PROPERTY;
  RadioSelectionDialogueControl radioSelection=new RadioSelectionDialogueControl(new IDialogueControlDescriptor[]{ControlTypes.PROPERTY,ControlTypes.METHOD},defaultSuggestionTypeButton);
  radioSelection.createControlArea(parent);
  table=new MethodParameterTable(getJavaProject(),initialParameters,useNamedArguments);
  table.createControlArea(parent);
  if (!isMethod) {
    table.setEnabled(false);
  }
  table.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (event.getControlDescriptor() == ControlTypes.USE_NAMED_ARGUMENTS && selection instanceof Boolean) {
        useNamedArguments=((Boolean)selection).booleanValue();
      }
    }
  }
);
  radioSelection.addSelectionListener(new ControlSelectionListener(){
    public void handleSelection(    ControlSelectionEvent event){
      IDialogueControlDescriptor descriptor=event.getControlDescriptor();
      if (descriptor == ControlTypes.PROPERTY) {
        table.setEnabled(false);
        isMethod=false;
      }
 else       if (descriptor == ControlTypes.METHOD) {
        table.setEnabled(true);
        isMethod=true;
      }
    }
  }
);
}