Netbeans module get current project path
TopComponent activeC = TopComponent.getRegistry().getActivated();
FileObject dataLookup = activeC.getLookup().lookup(FileObject.class);
Project pro = FileOwnerQuery.getOwner(dataLookup);
String path = pro.getProjectDirectory().getPath();