Node fbElement = document.getElementsByTagName("BasicFB").item(0);
if(fbElement != null){
fbElement.appendChild(algElement);
}
DOMTree tree = (DOMTree)me.getMouseEvent().getComponent();
// DOMTreeNode node = (DOMTreeNode)tree.getSelectionPath()
// .getLastPathComponent();
JScrollPane sp = (JScrollPane) tree.getParent().getParent();
JViewport vp = new JViewport();
DOMTree nTree= new DOMTree(document);
vp.setView(nTree);
sp.setViewport(vp);
//getGraphView().setElement(algElement);
dispose();