public IFileTabContent Deserialize(Guid guid, ISettingsSection section, IFileTreeNodeData[] nodes)
 {
     var context = new FileTabContentFactoryContext(nodes);
     foreach (var factory in tabContentFactories) {
         var content = factory.Value.Deserialize(guid, section, context);
         if (content != null)
             return content;
     }
     return null;
 }
 public IFileTabContent CreateTabContent(IFileTreeNodeData[] nodes)
 {
     var context = new FileTabContentFactoryContext(nodes);
     foreach (var factory in tabContentFactories) {
         var tabContent = factory.Value.Create(context);
         if (tabContent != null)
             return tabContent;
     }
     return null;
 }
        public IFileTabContent Deserialize(Guid guid, ISettingsSection section, IFileTreeNodeData[] nodes)
        {
            var context = new FileTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var content = factory.Value.Deserialize(guid, section, context);
                if (content != null)
                {
                    return(content);
                }
            }
            return(null);
        }
        public IFileTabContent CreateTabContent(IFileTreeNodeData[] nodes)
        {
            var context = new FileTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var tabContent = factory.Value.Create(context);
                if (tabContent != null)
                {
                    return(tabContent);
                }
            }
            return(null);
        }
        public Guid?Serialize(IFileTabContent content, ISettingsSection section)
        {
            var nodes   = content.Nodes.ToArray();
            var context = new FileTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var guid = factory.Value.Serialize(content, section);
                if (guid != null)
                {
                    return(guid);
                }
            }
            return(null);
        }
 public Guid? Serialize(IFileTabContent content, ISettingsSection section)
 {
     var nodes = content.Nodes.ToArray();
     var context = new FileTabContentFactoryContext(nodes);
     foreach (var factory in tabContentFactories) {
         var guid = factory.Value.Serialize(content, section);
         if (guid != null)
             return guid;
     }
     return null;
 }