public void widgetSelected(final SelectionEvent event) { fFutureFix= NO_FIX;
if (canInlineMember()) { fNoFixButton= new Button(composite, SWT.CHECK); fNoFixButton.setText(Messages.format(ActionMessages.ConfigureDeprecationFixDialog_NoFixCheckBoxLabel, memberName)); data= new GridData(); data.verticalIndent= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING * 2); fNoFixButton.setLayoutData(data);  fInlineFixButton= new Button(composite, SWT.RADIO); fInlineFixButton.setText(Messages.format(ActionMessages.ConfigureDeprecationFixDialog_InliningRadioButtonLabel, memberName)); data= new GridData(); data.horizontalIndent= convertVerticalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 2); fInlineFixButton.setLayoutData(data);  fReplaceInvocationButton= new Button(composite, SWT.RADIO); fReplaceInvocationButton.setText(Messages.format(ActionMessages.ConfigureDeprecationFixDialog_ReplaceReferencesRadioButtonLabel, memberName)); data= new GridData(); data.horizontalIndent= convertVerticalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 2); fReplaceInvocationButton.setLayoutData(data);  fBodyEditorControl= createBody(composite); data= new GridData(GridData.FILL_BOTH); data.widthHint= pixelConverter.convertWidthInCharsToPixels(60); data.minimumHeight= pixelConverter.convertHeightInCharsToPixels(5); data.horizontalIndent= convertVerticalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 4); fBodyEditorControl.setLayoutData(data);   fNoFixButton.addSelectionListener(new SelectionAdapter() {  public void widgetSelected(final SelectionEvent event) { if (fNoFixButton.getSelection()) { if (fInlineFixButton.getSelection()) { fFutureFix= INLINE_FIX; fBodyEditorControl.setEnabled(false); } else { fFutureFix= REPLACE_FIX; fBodyEditorControl.setEnabled(true); } fInlineFixButton.setEnabled(true); fReplaceInvocationButton.setEnabled(true); } else { fFutureFix= NO_FIX; fInlineFixButton.setEnabled(false); fReplaceInvocationButton.setEnabled(false); fBodyEditorControl.setEnabled(false); } updateStatus(); } });  fReplaceInvocationButton.addSelectionListener(new SelectionAdapter() {  public void widgetSelected(SelectionEvent e) { fFutureFix= REPLACE_FIX; fBodyEditorControl.setEnabled(true); updateStatus(); } });  fInlineFixButton.addSelectionListener(new SelectionAdapter() {  public void widgetSelected(final SelectionEvent event) { fFutureFix= INLINE_FIX; fBodyEditorControl.setEnabled(false); updateStatus(); } });  initializeFix(); initializeControls(); } else { fReplaceInvocationButton= new Button(composite, SWT.CHECK); fReplaceInvocationButton.setText(Messages.format(ActionMessages.ConfigureDeprecationFixDialog_ReplaceReferencesCheckBoxLabel, memberName)); data= new GridData(); data.verticalIndent= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING * 2); fReplaceInvocationButton.setLayoutData(data);  fBodyEditorControl= createBody(composite); data= new GridData(GridData.FILL_BOTH); data.widthHint= pixelConverter.convertWidthInCharsToPixels(50); data.minimumHeight= pixelConverter.convertHeightInCharsToPixels(5); data.horizontalIndent= convertVerticalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 2); fBodyEditorControl.setLayoutData(data);  fReplaceInvocationButton.addSelectionListener(new SelectionAdapter() {  public void widgetSelected(SelectionEvent e) { if (fReplaceInvocationButton.getSelection()) { fFutureFix= REPLACE_FIX; fBodyEditorControl.setEnabled(true); } else { fFutureFix= NO_FIX; fBodyEditorControl.setEnabled(false); } updateStatus(); } });  initializeFix(); switch (fCurrentFix) { case NO_FIX: fReplaceInvocationButton.setSelection(false); fBodyEditorControl.setEnabled(false); break; case REPLACE_FIX: fReplaceInvocationButton.setSelection(true); fBodyEditorControl.setEnabled(true); break;
	protected Control createDialogArea(final Composite parent) {		final Composite container= (Composite) super.createDialogArea(parent);		final Composite composite= new Composite(container, SWT.NONE);		final GridLayout layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		composite.setLayout(layout);		final Label label= new Label(composite, SWT.HORIZONTAL | SWT.LEFT | SWT.WRAP);		label.setText(ActionMessages.ConfigureDeprecationFixDialog_dialog_description);		fNoFixButton= new Button(composite, SWT.RADIO);		fNoFixButton.setText(ActionMessages.ConfigureDeprecationFixDialog_no_fix_label);		fNoFixButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(final SelectionEvent event) {				fFutureFix= NO_FIX;			}		});		final GridData data= new GridData();		data.verticalIndent= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING * 2);		fNoFixButton.setLayoutData(data);		fInlineFixButton= new Button(composite, SWT.RADIO);		fInlineFixButton.setText(ActionMessages.ConfigureDeprecationFixDialog_inline_fix_label);		fInlineFixButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(final SelectionEvent event) {				fFutureFix= INLINE_FIX;			}		});		initializeFix();		initializeControls();		return composite;	}