Sample Action Demo Module project. See the chapter called "Filesystems" in the book "Rich Client Programming: Plugging into the NetBeans Platform" for details.
This sample illustrates how to add menus to a NetBeans module.