hauss wrote:When I try to run the very first plugin in chapter 2, the favorites one... (export it, shut down eclipse, unzip the plugin, start up eclipse), I see it in my other views window but when I try to show it I get an "unable to instantiate view" error. However when I do a run runtime workbench and do window -> show view -> other, I see the view fine with One Two Three ...
Why isn't it working in my eclipse (without having to run the runtime workbench to see the view?)
Do any exceptions appear in your Eclipse ".log" file?
You may be running into a major Eclipse bug. Eclipse 3.0 may not immediately recognize new plugins. This occurs because Eclipse 3.x caches plug-in information for a faster startup at the cost of not recognizing changes to the installed plugins. To workaround this problem, include the "-clean" option on the command line used to startup Eclipse. The "-clean" option causes Eclipse to reparse and recache the plug-in information, picking up any newly installed or revised features. Once the plug-in information has been recached and your plugin appears as expected, you can remove the "-clean" option. Deleting the Eclipse "configuration" directory (it is recreated on startup) and re-starting Eclipse should also have the same effect.
Alternatively, you can use the technique described in the Eclipse 3.0 readme file:
When features and plug-ins are manually installed on top of an Eclipse-based product install located on a FAT file system that has already been run at least once, the product must be explicitly restarted with the system property osgi.checkConfiguration set to true. This property can be set in the eclipse/configuration/config.ini file, or passed to the eclipse command line via the -vmargs option. For example, restart with the following command: eclipse.exe -vmargs -Dosgi.checkConfiguration=true. Then, open Help > Software Updates > Manage Configuration dialog and toggle on the "Show disabled features" button its toolbar. Select the newly "installed" feature and press on the "Enable feature" action on the right pane (or select the action from the feature's context menu).
Let me know if the above helps.