How to listen for projects to be opened/closed?

Apache NetBeans Wiki Index

Note: These pages are being reviewed.

Specific for a project-type

Implement a ProjectOpenedHook and register it to a project-type `

    service =ProjectOpenedHook.class,
    projectType = {"org-netbeans-modules-web-project"}
public class MyProjectOpenedHook extends ProjectOpenedHook {

    private final Project project;

    public MyProjectOpenedHook(Project project) {
        this.project = project;

    protected void projectOpened() {

    protected void projectClosed() {

For all project-types