I thought I’d poke in here and say what’s up to everyone else who was at the boot camp. It was invaluable to me. I have my module using project resources exclusively, have it working with the project browser tree and RPC, and am well on my way to getting it complete.
I thought I’d throw a few pitfalls on here in case anyone else finds them valuable.
- Working with Project Resources
- If you make an update to a project resource, you are responsible for processing that update on the designer manually. There are no methods automatically called (afaict). The ProjectListener’s projectResourceModified() doesn’t fire on local updates.
- Project Browser Tree
- Extend from MutableNavTreeNode, and Always, always add children from left to right. Don’t create a node, create children, then add that node to the tree. Lots of bad things happen if you do that. Make sure you create a node, add it to the tree, then create the children.
- XML Serialization will give you a cryptic error if you forget to put a constructor with no parameters in your classes. If you’re getting a java.lang.InstantiationException, that’s probably why.
That’s all for now. Hope this helps someone How’s everyone else’s programming going?