I'm a bit lost when it comes to exporting my plugin. I'm doing the export through PDE inside of eclipse. When I import my plugin into another instance of eclipse, I'm getting an error when I try to instantiate a model. I've seen customBuildCallbacks.xml mention but am not sure if I need that. Any help would be greatly appreciated.
The PDE export feature that creates runnable plugin jars performs compilation using an Ant script that it exports. For Sapphire 0.6.x or older, the annotation processor must run at build time in order to generate element implementation classes. This is accomplished in customBuildCallbacks.xml file. The file is referenced in plugin's build.properties file, so that PDE knows to wire it into the build. Take a look at this files in the samples bundle.
- Konstantin
PS: Note that this will not be necessary for 0.7 as the annotation processor has been eliminated in favor of runtime bytecode generation, but 0.7 is not ready for general use yet.