FileObject of = (FileObject) k.get();
if (of.isFolder() && of.getFileObject( NodeJSProjectFactory.PACKAGE_JSON ) != null) {
try {
Project proj = ProjectManager.getDefault().findProject( of );
if (proj != null) {
LogicalViewProvider vp = proj.getLookup().lookup( LogicalViewProvider.class );
if (vp != null) {
return new FilterNode( vp.createLogicalView() );
}
}
} catch ( IOException ex ) {
Logger.getLogger( ProjectChildren.class.getName() ).log(
Level.FINE, "Error opening project disappeared", ex );