1. If you want to applyProgramUse the resource navigator provided by ECLIPSE (which is part of the IDE plugin). Add the following to workbenchadvisor:CodeOtherwise, the new project and file name in Navigator will become empty:
Workbenchadapterbuilder. registeradapters ();
I
Can be added to the prewindowopen () method, otherwise you may need to manually refresh to see the existing project. Of course, you still need
Add org. Eclipse. UI. IDE and org. Eclipse. UI. Views to dependencies, so your RCP program will become larger.
Yes. Currently, resourcenavigator is not encouraged to be used in RCP programs. Later versions of eclipse may provide more suitable plug-ins.
2. If you encounter the following exceptions when running RCP application:
Java. Lang. nosuchmethodexception: COM. Your. yourplugin. < Init > (Org. Eclipse. Core. runtime. iplugindescriptor)
At java. Lang. Class. getconstructor0 (unknown source)
At java. Lang. Class. getconstructor (unknown source)
At org. Eclipse. Core. Internal. plugins. plugindescriptor. internaldopluginactivation (plugindescriptor. Java: 403 )
At org. Eclipse. Core. Internal. plugins. plugindescriptor. dopluginactivation (plugindescriptor. Java: 359 )
Or:
Org. Eclipse. Core. runtime. coreexception [ 1 ]: Java. Lang. classnotfoundexception: COM. Your. yourapplication
At org. Eclipse. osgi. Framework. Internal. Core. bundleloader. findclass (bundleloader. Java: 404 )
At org. Eclipse. osgi. Framework. adaptor. Core. abstractclassloader. loadclass (abstractclassloader. Java: 93 )
At java. Lang. classloader. loadclass (unknown source)
At org. Eclipse. osgi. Framework. Internal. Core. bundleloader. loadclass (bundleloader. Java: 307 )
Check whether org is added to plugin dependencies. eclipse. core. runtime. compatibility, I don't know what this plug-in is for, but it cannot be started as long as it is available in my RCP application.
Finally, if you want to display logs in the eclipse console rather than writing them directly to the file, you can add the-consolelog parameter at runtime.