Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2008 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 Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 7-12
Link Here
|
7 |
* |
7 |
* |
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
|
|
10 |
* Benjamin Cabe <benjamin.cabe@anyware-tech.com> - bug 219513 |
10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
11 |
package org.eclipse.pde.internal.ui.wizards.tools; |
12 |
package org.eclipse.pde.internal.ui.wizards.tools; |
12 |
|
13 |
|
Lines 39-44
Link Here
|
39 |
private Button fFixIconNLSPaths; |
40 |
private Button fFixIconNLSPaths; |
40 |
private Button fRemovedUnusedKeys; |
41 |
private Button fRemovedUnusedKeys; |
41 |
private Button fRemoveLazy; |
42 |
private Button fRemoveLazy; |
|
|
43 |
private Button fRemoveUselessFiles; |
42 |
|
44 |
|
43 |
private Button[] fTopLevelButtons; // used for setting page complete state |
45 |
private Button[] fTopLevelButtons; // used for setting page complete state |
44 |
|
46 |
|
Lines 139-144
Link Here
|
139 |
|
141 |
|
140 |
fRemoveLazy = new Button(group, SWT.CHECK); |
142 |
fRemoveLazy = new Button(group, SWT.CHECK); |
141 |
fRemoveLazy.setText(PDEUIMessages.OrganizeManifestsWizardPage_lazyStart); |
143 |
fRemoveLazy.setText(PDEUIMessages.OrganizeManifestsWizardPage_lazyStart); |
|
|
144 |
|
145 |
fRemoveUselessFiles = new Button(group, SWT.CHECK); |
146 |
fRemoveUselessFiles.setText(PDEUIMessages.OrganizeManifestsWizardPage_uselessPluginFile); |
147 |
|
142 |
} |
148 |
} |
143 |
|
149 |
|
144 |
private void createNLSGroup(Composite container) { |
150 |
private void createNLSGroup(Composite container) { |
Lines 208-213
Link Here
|
208 |
fRemoveLazy.setSelection(selection); |
214 |
fRemoveLazy.setSelection(selection); |
209 |
fProcessor.setRemoveLazy(selection); |
215 |
fProcessor.setRemoveLazy(selection); |
210 |
|
216 |
|
|
|
217 |
selection = !settings.getBoolean(PROP_REMOVE_USELESSFILES); |
218 |
fRemoveUselessFiles.setSelection(selection); |
219 |
fProcessor.setRemoveUselessFiles(selection); |
220 |
|
211 |
selection = settings.getBoolean(PROP_NLS_PATH); |
221 |
selection = settings.getBoolean(PROP_NLS_PATH); |
212 |
fFixIconNLSPaths.setSelection(selection); |
222 |
fFixIconNLSPaths.setSelection(selection); |
213 |
fProcessor.setPrefixIconNL(selection); |
223 |
fProcessor.setPrefixIconNL(selection); |
Lines 220-226
Link Here
|
220 |
setPageComplete(); |
230 |
setPageComplete(); |
221 |
} |
231 |
} |
222 |
|
232 |
|
223 |
protected void preformOk() { |
233 |
protected void performOk() { |
224 |
IDialogSettings settings = getDialogSettings(); |
234 |
IDialogSettings settings = getDialogSettings(); |
225 |
|
235 |
|
226 |
settings.put(PROP_ADD_MISSING, !fAddMissing.getSelection()); |
236 |
settings.put(PROP_ADD_MISSING, !fAddMissing.getSelection()); |
Lines 235-240
Link Here
|
235 |
settings.put(PROP_ADD_DEPENDENCIES, fAdditonalDependencies.getSelection()); |
245 |
settings.put(PROP_ADD_DEPENDENCIES, fAdditonalDependencies.getSelection()); |
236 |
|
246 |
|
237 |
settings.put(PROP_REMOVE_LAZY, !fRemoveLazy.getSelection()); |
247 |
settings.put(PROP_REMOVE_LAZY, !fRemoveLazy.getSelection()); |
|
|
248 |
settings.put(PROP_REMOVE_USELESSFILES, !fRemoveUselessFiles.getSelection()); |
238 |
|
249 |
|
239 |
settings.put(PROP_NLS_PATH, fFixIconNLSPaths.getSelection()); |
250 |
settings.put(PROP_NLS_PATH, fFixIconNLSPaths.getSelection()); |
240 |
settings.put(PROP_UNUSED_KEYS, fRemovedUnusedKeys.getSelection()); |
251 |
settings.put(PROP_UNUSED_KEYS, fRemovedUnusedKeys.getSelection()); |
Lines 252-258
Link Here
|
252 |
} |
263 |
} |
253 |
|
264 |
|
254 |
private void setButtonArrays() { |
265 |
private void setButtonArrays() { |
255 |
fTopLevelButtons = new Button[] {fRemoveUnresolved, fAddMissing, fModifyDependencies, fMarkInternal, fUnusedDependencies, fAdditonalDependencies, fFixIconNLSPaths, fRemovedUnusedKeys, fRemoveLazy, fCalculateUses}; |
266 |
fTopLevelButtons = new Button[] {fRemoveUnresolved, fAddMissing, fModifyDependencies, fMarkInternal, fUnusedDependencies, fAdditonalDependencies, fFixIconNLSPaths, fRemovedUnusedKeys, fRemoveLazy, fRemoveUselessFiles, fCalculateUses}; |
256 |
} |
267 |
} |
257 |
|
268 |
|
258 |
private void setPageComplete() { |
269 |
private void setPageComplete() { |
Lines 311-316
Link Here
|
311 |
fProcessor.setAddDependencies(fAdditonalDependencies.getSelection()); |
322 |
fProcessor.setAddDependencies(fAdditonalDependencies.getSelection()); |
312 |
else if (fRemoveLazy.equals(source)) |
323 |
else if (fRemoveLazy.equals(source)) |
313 |
fProcessor.setRemoveLazy(fRemoveLazy.getSelection()); |
324 |
fProcessor.setRemoveLazy(fRemoveLazy.getSelection()); |
|
|
325 |
else if (fRemoveUselessFiles.equals(source)) |
326 |
fProcessor.setRemoveUselessFiles(fRemoveUselessFiles.getSelection()); |
314 |
else if (fFixIconNLSPaths.equals(source)) |
327 |
else if (fFixIconNLSPaths.equals(source)) |
315 |
fProcessor.setPrefixIconNL(fFixIconNLSPaths.getSelection()); |
328 |
fProcessor.setPrefixIconNL(fFixIconNLSPaths.getSelection()); |
316 |
else if (fRemovedUnusedKeys.equals(source)) |
329 |
else if (fRemovedUnusedKeys.equals(source)) |