Apache NetBeans Wiki Index

Note: These pages are being reviewed.

How to listen for projects to be opened/closed?

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

Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqListenForOpeningClosingProject , that was last modified by NetBeans user Markiewb on 2015-03-12T18:54:53Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.