XMenuItemPeer[] copyItems(){
synchronized (getMenuTreeLock()) {
    return (XMenuItemPeer[])items.toArray(new XMenuItemPeer[]{});
  }
}

XMenuItemPeer [ ] copyItems ( ) { synchronized ( getMenuTreeLock ( ) ) { return ( XMenuItemPeer [ ] ) items . toArray ( new XMenuItemPeer [ ] { } ) ; } }
thread - safely creates a copy of the items vector
