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 );
} catch ( IllegalArgumentException ex ) {
Exceptions.printStackTrace( ex );
}
}
DataObject dob = DataObject.find( of );
return new FilterNode( dob.getNodeDelegate() );
}