public int getChildCount(Object parent) {
if(rooted==true) countViews();
if(parent==root) return fm.getFileList().size();
else if(parent instanceof menuNode) {
Plugin p = ((menuNode)parent).view;
if(p instanceof PluginStorage) {
openedFile f = ((menuNode)parent).file;
Vector<Plugin> tmp = (Vector<Plugin>)views.get(f.getExtension());
if(tmp!=null)