fIsEclipseNLS= new Button(parent, SWT.CHECK); fIsEclipseNLS.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fIsEclipseNLS.setText(NLSUIMessages.ExternalizeWizardPage_isEclipseNLSCheckbox); fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS()); fIsEclipseNLS.setEnabled(willCreateAccessorClass()); fIsEclipseNLS.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { super.widgetDefaultSelected(e); fNLSRefactoring.setIsEclipseNLS(fIsEclipseNLS.getSelection()); validateKeys(true); } });
if (fNLSRefactoring.isEclipseNLS() || isEclipseNLSAvailable()) { fIsEclipseNLS= new Button(parent, SWT.CHECK); fIsEclipseNLS.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fIsEclipseNLS.setText(NLSUIMessages.ExternalizeWizardPage_isEclipseNLSCheckbox); fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS()); fIsEclipseNLS.setEnabled(willCreateAccessorClass()); fIsEclipseNLS.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { super.widgetDefaultSelected(e); fNLSRefactoring.setIsEclipseNLS(fIsEclipseNLS.getSelection()); validateKeys(true); } }); }
	private void createIsEclipseNLSCheckbox(Composite parent) {		fIsEclipseNLS= new Button(parent, SWT.CHECK);		fIsEclipseNLS.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));		fIsEclipseNLS.setText(NLSUIMessages.ExternalizeWizardPage_isEclipseNLSCheckbox); 		fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS());		fIsEclipseNLS.setEnabled(willCreateAccessorClass());		fIsEclipseNLS.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				super.widgetDefaultSelected(e);				fNLSRefactoring.setIsEclipseNLS(fIsEclipseNLS.getSelection());				validateKeys(true);			}		});	}