[SourceJammer-users] sj client issue
Brought to you by:
robertmacgrogan
From: <Bri...@re...> - 2004-12-27 19:02:52
|
Hello, I am working on a sourcejammer plugin for eclipse and I am running into some issues. I can iterate through the first two levels with no problems, but when I attempt to get the project object from the third level using getProjObj(long value), I get the following error: org.sourcejammer.client.gui.GUICommandException: Error: Unable to access File information. null Error: Unable to access File information. null java.lang.Exception: Error: Unable to access File information. null at org.sourcejammer.client.gui.CommandCentral.retrieveProject(Unknown Source) at org.sourcejammer.client.simpletools.SimpleInterface.getProjectObj(Unknown Source) at sjplugin.views.SourceJammerView$ViewContentProvider.build(SourceJammerView.java:206) at sjplugin.views.SourceJammerView$ViewContentProvider.initialize(SourceJammerView.java:156) at sjplugin.views.SourceJammerView$ViewContentProvider.getElements(SourceJammerView.java:126) I believe that one of the objects on the third level may be an actual file and not a folder. Is there a way to drill down the hierarchy without knowing the particular object type of everything that I am attempting to read in? invisibleRoot = new TreeParent(""); NodeList nodeList = sjProject.childList(); NodeIterator nodeIter = nodeList.getIterator(); while(nodeIter.hasMoreNodes()) { // root level Node node = nodeIter.getNextNode(); rootParent = new TreeParent(node.getNodeName()); // get child node as Project childProj = sjInterface.getProjectObj(node.getUniqueID()); //get the child's children childNodeList = childProj.childList(); childNodeIter = childNodeList.getIterator(); while(childNodeIter.hasMoreNodes()) { Node nextNode = childNodeIter.getNextNode(); treeParentObj = new TreeParent(nextNode.getNodeName()); // The next line causes an error!!!!!!!! //nextChildProj = sjInterface.getProjectObj(nextNode.getUniqueID()); // get next child node as Project System.out.println("id:"+nextNode.getUniqueID()); rootParent.addChild(treeParentObj); } invisibleRoot.addChild(rootParent); } sjInterface.disconnect(); |