protected override void AddDefaultItemsToMenu(GenericMenu menu, EditorWindow view)
{
if (menu.GetItemCount() != 0)
{
menu.AddSeparator("");
}
menu.AddItem(EditorGUIUtility.TextContent("Maximize"), !(base.parent is SplitView), new GenericMenu.MenuFunction2(this.Unmaximize), view);
menu.AddDisabledItem(EditorGUIUtility.TextContent("Close Tab"));
menu.AddSeparator("");
Type[] paneTypes = base.GetPaneTypes();
GUIContent content = EditorGUIUtility.TextContent("Add Tab");
foreach (Type type in paneTypes)
{
if (type != null)
{
GUIContent content2 = new GUIContent(EditorWindow.GetLocalizedTitleContentFromType(type));
content2.text = content.text + "/" + content2.text;
menu.AddDisabledItem(content2);
}
}
}