X

Geertjan's Blog

  • June 24, 2012

Viewing the NetBeans Central Registry

Geertjan Wielenga
Product Manager

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.

Join the discussion

Comments ( 4 )
  • Toni Epple Tuesday, June 26, 2012

    For even more fun, open one of the folders Toolbar or Menu and drag and drop the content around. Notice anything in your application :-)?


  • guest Tuesday, June 26, 2012

    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


  • J.Boesl Tuesday, June 26, 2012

    Why don't you use

    'NodeOperation.getDefault().explore(DataObject.find(FileUtil.getConfigRoot()).getNodeDelegate());'


  • Jens Hofschröer Friday, June 29, 2012

    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


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.