public void SetEditorTypePanelProperties(Type editorType, EditorTypePanelProperties panelProperties)
 {
     if (!_editorTypeToPanelPropertiesMap.ContainsKey(editorType))
     {
         _editorTypeToPanelPropertiesMap.Add(editorType, panelProperties);
     }
     else
     {
         _editorTypeToPanelPropertiesMap[editorType] = panelProperties;
     }
 }
        public EditorTypePanelProperties GetEditorTypePanelProperties(Type editorType)
        {
            if (!_editorTypeToPanelPropertiesMap.ContainsKey(editorType))
            {
                var editorSettings = editorType.GetEditorInfoAttribute();
                if (editorSettings == null)
                {
                    return(null);
                }

                EditorTypePanelProperties prop = new EditorTypePanelProperties()
                {
                    ShowComponentPanel = editorSettings.ShowComponentPanel,
                    ShowLogPanel       = editorSettings.ShowLogPanel,
                    ShowSettingsPanel  = editorSettings.ShowSettingsPanel,
                    ShowMaximized      = false
                };
                _editorTypeToPanelPropertiesMap.Add(editorType, prop);
            }

            return(_editorTypeToPanelPropertiesMap[editorType]);
        }