My Second NetBeans Plug-in: Project Packager
During my vacation next to lots of biking and having fun with friends I also worked on my second plug-in called Project Packager. Unlike my previous
Googlefight plug-in this one is almost useful. It can be used to export projects as zip packages, send them by e-mail and to unpack them for opening. Here's a screenshot of the export dialog:

Exporting of projects and sending by e-mail
I've found out that exploring NetBeans APIs can be quite fun and will share some of the experiences during my next posts, especially all those tricky things. It happened to me several times that I was trying to solve some problem and then after few hours smashed my head when finding the answer, you know how it goes... exploring something new is both challenging and fun.
Here you can download the
nbm of my plug-in and
it's sources. If anyone thinks this plug-in is a good idea I may also commit the sources to CVS. The project needs to be opened in a recent 4.2 daily build. Note that the project contains 2 external libraries to be able to send MIME attachments. Comments are welcome and appreciated.
Update: I've commited the project into CVS, the latest version of sources will always be in
contrib/projectpackager.
Why Is NetBeans Full of Cookies?
If you've ever studied NetBeans sources or wrote anything above NetBeans, you must have crossed the omnipresent Cookies. There is a nice explanation of how the term was created in the
NetBeans: the Definitive Guide (which is btw a great resource if you want to really understand NetBeans, most concepts are still valid although the book is about NetBeans 3.x):
----------------------%<----------------------
Why Cookies?
According to Yarda Tulach, “The name ‘cookie’ was invented by us, and was meant as something special and sweet
that is provided by an object, which you can ask for.” NetBeans’ cookies bear a fleeting resemblance to the concept as
defined by web browsers, but only inasmuch as they are objects held by a provider object which is not expected to
know much about what kinds of cookies it possesses. Do not conflate NetBeans’ concept of cookies with browser cookies—
this will only create confusion. The name probably contributes a little bit to Cookies being a stumbling block for
people getting involved in coding for NetBeans.
----------------------%<----------------------
If it helps you can visualize a Node offering various Cookies like this: