Lines 52-57
Link Here
|
52 |
// disable fix up existing copyright till it works better |
52 |
// disable fix up existing copyright till it works better |
53 |
// private Button fFixExisting; |
53 |
// private Button fFixExisting; |
54 |
private Button fIgnoreProperties; |
54 |
private Button fIgnoreProperties; |
|
|
55 |
private Button fIgnoreXml; |
55 |
|
56 |
|
56 |
/* (non-Javadoc) |
57 |
/* (non-Javadoc) |
57 |
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) |
58 |
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) |
Lines 125-130
Link Here
|
125 |
data.horizontalSpan = 2; |
126 |
data.horizontalSpan = 2; |
126 |
fIgnoreProperties.setLayoutData(data); |
127 |
fIgnoreProperties.setLayoutData(data); |
127 |
|
128 |
|
|
|
129 |
// ignore xml files |
130 |
fIgnoreXml = new Button(fComposite, SWT.CHECK); |
131 |
fIgnoreXml.setText(Messages.getString("CopyrightPreferencePage.9")); //$NON-NLS-1$ |
132 |
data = new GridData(); |
133 |
data.horizontalSpan = 2; |
134 |
fIgnoreXml.setLayoutData(data); |
135 |
|
128 |
KeyListener listener1 = new KeyAdapter() { |
136 |
KeyListener listener1 = new KeyAdapter() { |
129 |
/* (non-Javadoc) |
137 |
/* (non-Javadoc) |
130 |
* @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) |
138 |
* @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) |
Lines 240-246
Link Here
|
240 |
fReplaceAllExisting.setSelection(store.getBoolean(RelEngCopyrightConstants.REPLACE_ALL_EXISTING_KEY)); |
248 |
fReplaceAllExisting.setSelection(store.getBoolean(RelEngCopyrightConstants.REPLACE_ALL_EXISTING_KEY)); |
241 |
// disable fix up existing copyright till it works better |
249 |
// disable fix up existing copyright till it works better |
242 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), store.getBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
250 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), store.getBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
243 |
fIgnoreProperties.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
251 |
fIgnoreProperties.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
|
|
252 |
fIgnoreXml.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
244 |
} |
253 |
} |
245 |
|
254 |
|
246 |
/** |
255 |
/** |
Lines 312-317
Link Here
|
312 |
// disable fix up existing copyright till it works better |
321 |
// disable fix up existing copyright till it works better |
313 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
322 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
314 |
fIgnoreProperties.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
323 |
fIgnoreProperties.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
|
|
324 |
fIgnoreXml.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
315 |
|
325 |
|
316 |
super.performDefaults(); |
326 |
super.performDefaults(); |
317 |
} |
327 |
} |
Lines 330-335
Link Here
|
330 |
// disable fix up existing copyright till it works better |
340 |
// disable fix up existing copyright till it works better |
331 |
// store.setValue(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY, fFixExisting.getSelection()); |
341 |
// store.setValue(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY, fFixExisting.getSelection()); |
332 |
store.setValue(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY, fIgnoreProperties.getSelection()); |
342 |
store.setValue(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY, fIgnoreProperties.getSelection()); |
|
|
343 |
store.setValue(RelEngCopyrightConstants.IGNORE_XML_KEY, fIgnoreXml.getSelection()); |
333 |
|
344 |
|
334 |
RelEngPlugin.getDefault().savePluginPreferences(); |
345 |
RelEngPlugin.getDefault().savePluginPreferences(); |
335 |
|
346 |
|