Project: Eclipse_Platform_UI
Bug 18734 Problem with new preference import feature
Reported: 2002-06-03 11:00:37 | Status: resolved fixed

Build 20020602 (F2) I noticed a problem in how the UI handles the new preference import feature. The code is as follows: IStatus status = Preferences.validatePreferenceVersions(path); if (!status.isOK()) { ErrorDialog.openError(...); return; } This is not the intended behaviour. The status object returned by Core can have severity OK, WARNING, or ERROR. In the case of a warning, you want to give the user the choice of whether or not they want to go ahead with the import. They may want to ignore minor compatibilty problems and go ahead with the import anyway. See the Preferences#validatePreferenceVersions javadoc for more details.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/ErrorDialog.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/PreferenceErrorDialog.java