I created a NetBeans module with, among other things, a custom project type. Then I decided to move some of the project-related stuff, including actions related to opening, creating and closing a project, to a separate library, to reduce dependency on the NetBeans platform.
Now I need to call code in the library when project is created, opened or closed in NetBeans, but I don't know how to get notified of those events. Can someone help?
You should extend a ProjectOpenedHook implementing the appropriate methods and ten add your extension to your Project's Lookup