|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2004 IBM Corporation and others. |
2 |
* Copyright (c) 2004, 2012 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Common Public License v1.0 |
4 |
* are made available under the terms of the Common Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 14-19
Link Here
|
| 14 |
|
14 |
|
| 15 |
import org.eclipse.releng.tools.Messages; |
15 |
import org.eclipse.releng.tools.Messages; |
| 16 |
import org.eclipse.releng.tools.RelEngPlugin; |
16 |
import org.eclipse.releng.tools.RelEngPlugin; |
|
|
17 |
import org.eclipse.releng.tools.XmlFile; |
| 17 |
|
18 |
|
| 18 |
import org.eclipse.swt.SWT; |
19 |
import org.eclipse.swt.SWT; |
| 19 |
import org.eclipse.swt.events.KeyAdapter; |
20 |
import org.eclipse.swt.events.KeyAdapter; |
|
Lines 134-146
Link Here
|
| 134 |
data = new GridData(); |
135 |
data = new GridData(); |
| 135 |
data.horizontalSpan = 2; |
136 |
data.horizontalSpan = 2; |
| 136 |
fIgnoreProperties.setLayoutData(data); |
137 |
fIgnoreProperties.setLayoutData(data); |
| 137 |
|
138 |
|
| 138 |
// ignore xml files |
139 |
if (XmlFile.BUGS_FIXED) { |
| 139 |
fIgnoreXml = new Button(fComposite, SWT.CHECK); |
140 |
// ignore xml files |
| 140 |
fIgnoreXml.setText(Messages.getString("CopyrightPreferencePage.9")); //$NON-NLS-1$ |
141 |
fIgnoreXml = new Button(fComposite, SWT.CHECK); |
| 141 |
data = new GridData(); |
142 |
fIgnoreXml.setText(Messages.getString("CopyrightPreferencePage.9")); //$NON-NLS-1$ |
| 142 |
data.horizontalSpan = 2; |
143 |
data = new GridData(); |
| 143 |
fIgnoreXml.setLayoutData(data); |
144 |
data.horizontalSpan = 2; |
|
|
145 |
fIgnoreXml.setLayoutData(data); |
| 146 |
} |
| 144 |
|
147 |
|
| 145 |
KeyListener listener1 = new KeyAdapter() { |
148 |
KeyListener listener1 = new KeyAdapter() { |
| 146 |
/* (non-Javadoc) |
149 |
/* (non-Javadoc) |
|
Lines 258-264
Link Here
|
| 258 |
// disable fix up existing copyright till it works better |
261 |
// disable fix up existing copyright till it works better |
| 259 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), store.getBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
262 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), store.getBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
| 260 |
fIgnoreProperties.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
263 |
fIgnoreProperties.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
| 261 |
fIgnoreXml.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
264 |
if (XmlFile.BUGS_FIXED) |
|
|
265 |
fIgnoreXml.setSelection(store.getBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
| 262 |
} |
266 |
} |
| 263 |
|
267 |
|
| 264 |
/** |
268 |
/** |
|
Lines 330-336
Link Here
|
| 330 |
// disable fix up existing copyright till it works better |
334 |
// disable fix up existing copyright till it works better |
| 331 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
335 |
// handleReplaceAllEnabled(fReplaceAllExisting.getSelection(), getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY)); |
| 332 |
fIgnoreProperties.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
336 |
fIgnoreProperties.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY)); |
| 333 |
fIgnoreXml.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
337 |
|
|
|
338 |
if (XmlFile.BUGS_FIXED) |
| 339 |
fIgnoreXml.setSelection(getPreferenceStore().getDefaultBoolean(RelEngCopyrightConstants.IGNORE_XML_KEY)); |
| 334 |
|
340 |
|
| 335 |
super.performDefaults(); |
341 |
super.performDefaults(); |
| 336 |
} |
342 |
} |
|
Lines 349-355
Link Here
|
| 349 |
// disable fix up existing copyright till it works better |
355 |
// disable fix up existing copyright till it works better |
| 350 |
// store.setValue(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY, fFixExisting.getSelection()); |
356 |
// store.setValue(RelEngCopyrightConstants.FIX_UP_EXISTING_KEY, fFixExisting.getSelection()); |
| 351 |
store.setValue(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY, fIgnoreProperties.getSelection()); |
357 |
store.setValue(RelEngCopyrightConstants.IGNORE_PROPERTIES_KEY, fIgnoreProperties.getSelection()); |
| 352 |
store.setValue(RelEngCopyrightConstants.IGNORE_XML_KEY, fIgnoreXml.getSelection()); |
358 |
|
|
|
359 |
if (XmlFile.BUGS_FIXED) |
| 360 |
store.setValue(RelEngCopyrightConstants.IGNORE_XML_KEY, fIgnoreXml.getSelection()); |
| 353 |
|
361 |
|
| 354 |
try { |
362 |
try { |
| 355 |
InstanceScope.INSTANCE.getNode(RelEngPlugin.ID).flush(); |
363 |
InstanceScope.INSTANCE.getNode(RelEngPlugin.ID).flush(); |