java - make a module's xml layer visible to other modules -


in netbeans platform i'm having 1 module watch xml filesystem , respond when it's changed other modules.

i've created layer.xml in module. changes show in ide when in watching module click on xml layer node , open . during runtime when watching module looking @ xml filesystem changes other module aren't there. other module can see own changes during runtime.

is there setting somewhere module lets other modules see xml layer?

this code i'm using inspect xml filesystem during runtime - prints names of nodes file, , trigger button when modules open , running.

private void btn1actionperformed(java.awt.event.actionevent evt)                                       {                                            try {         bufferedwriter writer = files.newbufferedwriter(paths.get("filesystemout.txt"), charset.forname("utf-8"));         exportfilesystem(fileutil.getconfigroot(), writer, 0);         writer.close();     } catch (ioexception e) {         system.err.println("couldn't write filesystem structure");     } }  void exportfilesystem(fileobject root, bufferedwriter writer, int depth) throws ioexception {     (int = 0; < depth * 4; ++i)     {         writer.write(' ');     }     writer.write(root.getname());     writer.newline();     fileobject[] children = root.getchildren();     (fileobject child : children)     {         exportfilesystem(child, writer, depth + 1);     } }     

open properties dialog of module xml layer needs visible. select api versioning , under public packages select package contains xml file. click ok.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -