function setMenusEnabled(h,manager)

menutags = {'ts.copy','ts.paste','ts.delete','ts.shift','ts.select','ts.merge',...
    'ts.data','ts.arith'};
allmenuTags = get(manager.Menus,{'Tag'});
set(manager.Menus(ismember(allmenuTags,menutags)),'Enable','off')
set(manager.Menus(~ismember(allmenuTags,menutags)),'Enable','on')