//Executes the item's registered delegate
 void ExecuteItemFunc(EditorUtils.MenuItemInfo item)
 {
     if (item.func != null){
         item.func();
     } else {
         item.func2(item.userData);
     }
     base.editorWindow.Close();
 }