use of si.ijs.acs.objectexplorer.engine.BACI.DelegateInvocation in project ACS by ACS-Community.
the class TreeHandlerBean method addNode.
/**
* @author rbertoncelj
*/
public void addNode(javax.swing.tree.TreeNode node, javax.swing.tree.TreeNode parentNode) {
addNodes(new TreeNode[] { node }, parentNode);
if (node instanceof BACIInvocation) {
BACIInvocation invoc = (BACIInvocation) node;
InvocationCouple ic = new InvocationCouple(invoc, null);
ic.invocationByName = new DelegateInvocation(invoc, treeByName, (BACIRemoteAccess) remoteAccess);
String curl = (String) ((OETreeNode) parentNode.getParent()).getUserObject() + ":" + parentNode.toString();
RemoteNodeCouple rnc = (RemoteNodeCouple) devices.get(curl);
if (rnc == null) {
notifier.reportError("TreeHandlerBean::addNode - Unexpected null pointer (rnc).");
return;
}
// yatagai : the name can not be the proper key -- does not work
// when more than 1 sub node are added.
// getInvList().put(invoc.getName(),ic);
getInvList().put(invoc, ic);
setNodesTreeByName(new TreeNode[] { ic.invocationByName }, rnc.deviceByName);
//System.out.println("DEBUG Added to invList "+invoc.getName()+"!");
}
}
Aggregations