private void OnSelectionChange()
		{
			this.m_Previews = null;
			this.m_SelectedPreview = null;
			this.m_TypeSelectionList = null;
			this.m_Parent.ClearKeyboardControl();
			ScriptAttributeUtility.ClearGlobalCache();
			base.Repaint();
		}
 private void DrawSelectionPickerList()
 {
   if (this.m_TypeSelectionList == null)
     this.m_TypeSelectionList = new TypeSelectionList(Selection.objects);
   DockArea parent = this.m_Parent as DockArea;
   if ((UnityEngine.Object) parent != (UnityEngine.Object) null)
     parent.tabStyle = (GUIStyle) "dragtabbright";
   GUILayout.Space(0.0f);
   Editor.DrawHeaderGUI((Editor) null, Selection.objects.Length.ToString() + " Objects");
   GUILayout.Label("Narrow the Selection:", EditorStyles.label, new GUILayoutOption[0]);
   GUILayout.Space(4f);
   Vector2 iconSize = EditorGUIUtility.GetIconSize();
   EditorGUIUtility.SetIconSize(new Vector2(16f, 16f));
   using (List<TypeSelection>.Enumerator enumerator = this.m_TypeSelectionList.typeSelections.GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       TypeSelection current = enumerator.Current;
       Rect rect = GUILayoutUtility.GetRect(16f, 16f, new GUILayoutOption[1]{ GUILayout.ExpandWidth(true) });
       if (GUI.Button(rect, current.label, InspectorWindow.styles.typeSelection))
       {
         Selection.objects = current.objects;
         Event.current.Use();
       }
       if (GUIUtility.hotControl == 0)
         EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);
       GUILayout.Space(4f);
     }
   }
   EditorGUIUtility.SetIconSize(iconSize);
 }
		private void DrawSelectionPickerList()
		{
			if (this.m_TypeSelectionList == null)
			{
				this.m_TypeSelectionList = new TypeSelectionList(Selection.objects);
			}
			DockArea dockArea = this.m_Parent as DockArea;
			if (dockArea != null)
			{
				dockArea.tabStyle = "dragtabbright";
			}
			GUILayout.Space(0f);
			Editor.DrawHeaderGUI(null, Selection.objects.Length + " Objects");
			GUILayout.Label("Narrow the Selection:", EditorStyles.label, new GUILayoutOption[0]);
			GUILayout.Space(4f);
			Vector2 iconSize = EditorGUIUtility.GetIconSize();
			EditorGUIUtility.SetIconSize(new Vector2(16f, 16f));
			foreach (TypeSelection current in this.m_TypeSelectionList.typeSelections)
			{
				Rect rect = GUILayoutUtility.GetRect(16f, 16f, new GUILayoutOption[]
				{
					GUILayout.ExpandWidth(true)
				});
				if (GUI.Button(rect, current.label, InspectorWindow.styles.typeSelection))
				{
					Selection.objects = current.objects;
					Event.current.Use();
				}
				if (GUIUtility.hotControl == 0)
				{
					EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);
				}
				GUILayout.Space(4f);
			}
			EditorGUIUtility.SetIconSize(iconSize);
		}
 private void OnSelectionChange()
 {
   this.m_Previews = (List<IPreviewable>) null;
   this.m_SelectedPreview = (IPreviewable) null;
   this.m_TypeSelectionList = (TypeSelectionList) null;
   this.m_Parent.ClearKeyboardControl();
   ScriptAttributeUtility.ClearGlobalCache();
   this.Repaint();
 }