public void AddRange(XmlSchemaCompletionCollection schemas) { for (int i = 0; i < schemas.Count; i++) { Add(schemas[i]); } }
public XmlSchemaFileAssociations(Properties properties, DefaultXmlSchemaFileAssociations defaultSchemaFileAssociations, XmlSchemaCompletionCollection schemas) { this.properties = properties; this.defaultSchemaFileAssociations = defaultSchemaFileAssociations; this.schemas = schemas; }
XmlSchemaCompletionCollection GetSchemaCollectionUsingDefaultSchema(XmlElementPath path, XmlSchemaCompletion defaultSchema) { XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection(); if (defaultSchema != null) { path.SetNamespaceForUnqualifiedNames(defaultSchema.NamespaceUri); schemas.Add(defaultSchema); } return(schemas); }
public XmlTreeView(IViewContent parent, XmlSchemaCompletionCollection schemas, XmlSchemaCompletion defaultSchema) : base(parent) { this.schemas = schemas; this.defaultSchema = defaultSchema; this.TabPageText = "${res:ICSharpCode.XmlEditor.XmlTreeView.Title}"; this.treeViewContainer = new XmlTreeViewContainerControl(schemas, defaultSchema); this.treeViewContainer.DirtyChanged += TreeViewContainerDirtyChanged; treeViewContainer.AttributesGrid.ContextMenuStrip = MenuService.CreateContextMenu(treeViewContainer, "/AddIns/XmlEditor/XmlTree/AttributesGrid/ContextMenu"); treeViewContainer.TreeView.ContextMenuStrip = MenuService.CreateContextMenu(treeViewContainer, "/AddIns/XmlEditor/XmlTree/ContextMenu"); }
public XmlSchemaCompletionCollection GetSchemas(string namespaceUri) { XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection(); foreach (XmlSchemaCompletion schema in this) { if (schema.NamespaceUri == namespaceUri) { schemas.Add(schema); } } return(schemas); }
public XmlSchemasPanel(RegisteredXmlSchemas registeredXmlSchemas, ICollection <string> xmlFileExtensions, XmlSchemaFileAssociations fileAssociations, IXmlSchemaCompletionDataFactory factory) { this.predefinedSchemas = registeredXmlSchemas.Schemas; this.xmlFileExtensions = xmlFileExtensions; this.fileAssociations = fileAssociations; InitializeComponent(); editor = new RegisteredXmlSchemasEditor(registeredXmlSchemas, xmlFileExtensions, fileAssociations, this, factory); }
XmlView() { schemas = XmlEditorService.RegisteredXmlSchemas.Schemas; }
public XmlTreeEditor(IXmlTreeView view, XmlSchemaCompletionCollection schemas, XmlSchemaCompletion defaultSchema) { this.view = view; this.schemas = schemas; this.defaultSchema = defaultSchema; }
public XmlTreeViewContainerControl(XmlSchemaCompletionCollection schemas, XmlSchemaCompletion defaultSchema) { InitializeComponent(); InitImages(); editor = new XmlTreeEditor(this, schemas, defaultSchema); }
public XmlSchemaCompletionCollection(XmlSchemaCompletionCollection schemas) { AddRange(schemas); }
public XmlCodeCompletionBinding(XmlSchemaFileAssociations schemaFileAssociations) { this.schemaFileAssociations = schemaFileAssociations; this.schemas = schemaFileAssociations.Schemas; }
public XmlSchemaDefinition(XmlSchemaCompletionCollection schemas, XmlSchemaCompletion currentSchema) { this.schemas = schemas; this.currentSchema = currentSchema; }