Community
Participate
Working Groups
Build ID: M20070921-1145 Steps To Reproduce: 1.Create an RCP app. 2.Add an export wizard to plugin.xml, pointing to org.eclipse.ui.wizards.datatransfer.ZipFileExportWizard. Could also just invoke it from code, like in an action. 3.Attempt to run the wizard and observe the error message. More information: ZipFileImportWizard, ExternalProjectImportWizard, PreferencesImportWizard, and PreferencesExportWizard can be brought up fine in the same RCP app, while FileSystemImportWizard and FileSystemExportWizard issue the message. The difference is that the wizards which start up call WorkbenchPlugin.getDefault(), while the ones which don't call the deprecated method Platform.getPlugin(). I figured out that adding the org.eclipse.core.runtime.compatibility plug-in to the dependency list allows all the wizards to start up without the message. It seems like perhaps all these classes ought to be calling WorkbenchPlugin.getDefault() now.
Note that when reproducing the error one will want to edit the list of plug-ins in the run configuration to only include the required ones. If one launches with all available plung-ins, the error won't occur.
Created attachment 83135 [details] Patch to fix the two wizards in question by calling WorkbenchPlugin.getDefault() instead.
Thanks once again Remy
Yes, thanks Remy. There is another wizard which has this problem - ZipFileExportWizard.
Created attachment 83243 [details] Patch to fix ZipFileExportWizard also.
Patch released for build >20071126
Verified in Version: 3.4.0 Build id: I20071210-0930
*** Bug 191722 has been marked as a duplicate of this bug. ***