For some fun, create a TopComponent and then add this bit of code, with thanks to Toni Epple:
add(new BeanTreeView(), BorderLayout.CENTER);
try {
myExplorerManager.setRootContext(DataObject.find(FileUtil.getConfigRoot()).getNodeDelegate());
} catch (DataObjectNotFoundException ex) {
Exceptions.printStackTrace(ex);
}
Run the application and you'll see the NetBeans Central Registry (a.k.a. System FileSystem) of the application you're running.
For even more fun, open one of the folders Toolbar or Menu and drag and drop the content around. Notice anything in your application :-)?
I wrapped that Node in a FilterNode to provide the "position" attribute and the "file extension". All Children are wrapped to.
Than I used an OutlineView to show these two properties. Great tool to find wrong layer entries :-)
Jens
Why don't you use
'NodeOperation.getDefault().explore(DataObject.find(FileUtil.getConfigRoot()).getNodeDelegate());'
I described my version in my blog (in german, Google Translate available):
http://blog.nigjo.de/netbeans/2012/06/die-netbeans-laufzeitkonfiguration-auf-einen-blick/
Jens