Text text = createTextInputField(result);
text.selectAll();
text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
replaceDuplicates = new Button(result, SWT.CHECK);
ExtractLocalRequestProcessor requestProcessor = getRequestProcessor();
replaceDuplicates.setText(com.aptana.shared_core.string.StringUtils.format("Also replace &duplicates (%s references)?",
requestProcessor.getDuplicatesSize()));
IPreferenceStore preferences = PydevPrefs.getPreferences();
boolean replace = preferences.getBoolean(EXTRACT_LOCAL_REPLACE_DUPLICATES);
replaceDuplicates.setSelection(replace);
requestProcessor.setReplaceDuplicates(replace);
replaceDuplicates.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
getRequestProcessor().setReplaceDuplicates(replaceDuplicates.getSelection());
IPreferenceStore preferences = PydevPrefs.getPreferences();
preferences.setValue(EXTRACT_LOCAL_REPLACE_DUPLICATES, replaceDuplicates.getSelection());