Exemplo n.º 1
0
        internal IEnumerable <Extension> CreateExtensions(ExtensionServer server, DesignItem item)
        {
            Debug.Assert(server != null);
            Debug.Assert(item != null);

            foreach (ExtensionEntry entry in GetExtensionEntries(item))
            {
                if (entry.Server == server)
                {
                    yield return(server.CreateExtension(entry.ExtensionType, item));
                }
            }
        }
Exemplo n.º 2
0
        internal IEnumerable <Extension> CreateExtensions(ExtensionServer server, DesignItem item, Type extensionType = null)
        {
            Debug.Assert(server != null);
            Debug.Assert(item != null);

            foreach (ExtensionEntry entry in GetExtensionEntries(item))
            {
                if (entry.Server == server && (extensionType == null || entry.ExtensionType == extensionType))
                {
                    var disabledExtensions = Extension.GetDisabledExtensions(item.View);
                    if (string.IsNullOrEmpty(disabledExtensions) || !disabledExtensions.Split(';').Contains(entry.ExtensionType.Name))
                    {
                        yield return(server.CreateExtension(entry.ExtensionType, item));
                    }
                }
            }
        }
Exemplo n.º 3
0
		internal IEnumerable<Extension> CreateExtensions(ExtensionServer server, DesignItem item)
		{
			Debug.Assert(server != null);
			Debug.Assert(item != null);
			
			foreach (ExtensionEntry entry in GetExtensionEntries(item)) {
				if (entry.Server == server) {
					
					var disabledExtensions = Extension.GetDisabledExtensions(item.View);
					if (disabledExtensions == null || !disabledExtensions.Split(';').Contains(entry.ExtensionType.Name))
						yield return server.CreateExtension(entry.ExtensionType, item);
				}
			}
		}
Exemplo n.º 4
0
		internal IEnumerable<Extension> CreateExtensions(ExtensionServer server, DesignItem item)
		{
			Debug.Assert(server != null);
			Debug.Assert(item != null);
			
			foreach (ExtensionEntry entry in GetExtensionEntries(item)) {
				if (entry.Server == server) {
					yield return server.CreateExtension(entry.ExtensionType, item);
				}
			}
		}