private void checkBuffer(MTreeNode newNode){
  if (!newNode.isSummary() || !newNode.getAllowsChildren())   return;
  for (int i=0; i < m_buffer.size(); i++) {
    MTreeNode node=(MTreeNode)m_buffer.get(i);
    if (node.getParent_ID() == newNode.getNode_ID()) {
      try {
        newNode.add(node);
      }
 catch (      Exception e) {
        log.severe("Adding " + node.getName() + " to "+ newNode.getName()+ ": "+ e.getMessage());
      }
      m_buffer.remove(i);
      i--;
    }
  }
}

private void checkBuffer ( MTreeNode newNode ) { if ( ! newNode . isSummary ( ) || ! newNode . getAllowsChildren ( ) ) return ; for ( int i = 0 ; i < m_buffer . size ( ) ; i ++ ) { MTreeNode node = ( MTreeNode ) m_buffer . get ( i ) ; if ( node . getParent_ID ( ) == newNode . getNode_ID ( ) ) { try { newNode . add ( node ) ; } catch ( Exception e ) { log . severe ( "Adding " + node . getName ( ) + " to " + newNode . getName ( ) + ": " + e . getMessage ( ) ) ; } m_buffer . remove ( i ) ; i -- ; } } }
check the buffer for nodes which have newnode as parents
