Program: 186030
Project: 186030
Buggy source:
protected void createFieldAreas(Composite parent){
  JavaTextControl nameControl=new JavaTextControl(ControlTypes.NAME,getOffsetLabelLocation(),suggestionName);
  nameControl.createControlArea(parent);
  nameControl.addSelectionListener(new RequiredValueControlSelectionListener(ControlTypes.NAME,suggestionName){
    protected void handleRequiredValue(    ControlSelectionEvent event){
      Object selection=event.getSelectionData();
      if (selection instanceof String) {
        suggestionName=(String)selection;
      }
    }
  }
);
  JavaTypeBrowsingControl declaringTypeControl=new JavaTypeBrowsingControl(ControlTypes.DECLARING_TYPE,getOffsetLabelLocation(),declaringTypeName,getJavaProject()){
    protected ValueStatus isControlValueValid(    String value){
      return new JavaValidTypeRule().checkValidity(value);
    }
  }
;
  declaringTypeControl.createControlArea(parent);
  if (editDeclaringType) {
    declaringTypeControl.setEnabled(true);
    declaringTypeControl.addSelectionListener(new RequiredValueControlSelectionListener(ControlTypes.DECLARING_TYPE,declaringTypeName){
      protected void handleRequiredValue(      ControlSelectionEvent event){
        Object selection=event.getSelectionData();
        if (selection instanceof String) {
          declaringTypeName=(String)selection;
        }
      }
    }
);
  }
 else {
    declaringTypeControl.setEnabled(false);
  }
  JavaTypeBrowsingControl suggestionTypeControl=new JavaTypeBrowsingControl(ControlTypes.TYPE,getOffsetLabelLocation(),suggestionType,getJavaProject());
  suggestionTypeControl.createControlArea(parent);
  suggestionTypeControl.addSelectionListener(new RequiredValueControlSelectionListener(ControlTypes.TYPE,suggestionType){
    protected void handleRequiredValue(    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 RequiredValueControlSelectionListener(ControlTypes.NAME,suggestionName){
    protected void handleRequiredValue(    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);
  if (editDeclaringType) {
    declaringTypeControl.setEnabled(true);
    declaringTypeControl.addSelectionListener(new RequiredValueControlSelectionListener(ControlTypes.DECLARING_TYPE,declaringTypeName){
      protected void handleRequiredValue(      ControlSelectionEvent event){
        Object selection=event.getSelectionData();
        if (selection instanceof String) {
          declaringTypeName=(String)selection;
        }
      }
    }
);
  }
 else {
    declaringTypeControl.setEnabled(false);
  }
  JavaTypeBrowsingControl suggestionTypeControl=new JavaTypeBrowsingControl(ControlTypes.TYPE,getOffsetLabelLocation(),suggestionType,getJavaProject());
  suggestionTypeControl.createControlArea(parent);
  suggestionTypeControl.addSelectionListener(new RequiredValueControlSelectionListener(ControlTypes.TYPE,suggestionType){
    protected void handleRequiredValue(    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;
      }
    }
  }
);
}