which api can open a file form a project in netbeans?

"mcheung63" <[email protected]> Fri, 26 Aug 2016 18:57:29 +0000
Newsgroups gmane.comp.java.netbeans.devel
Message-ID <[email protected]>
got it, this line can do:

DataObject.find(FileUtil.toFileObject(new File(filePath))).getLookup().lookup(OpenCookie.class).open();