Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 3
0
        XmlSchemaCompletionCollection GetSchemaCollectionUsingDefaultSchema(XmlElementPath path, XmlSchemaCompletion defaultSchema)
        {
            XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection();

            if (defaultSchema != null)
            {
                path.SetNamespaceForUnqualifiedNames(defaultSchema.NamespaceUri);
                schemas.Add(defaultSchema);
            }
            return(schemas);
        }
Ejemplo n.º 4
0
        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");
        }
Ejemplo n.º 5
0
        public XmlSchemaCompletionCollection GetSchemas(string namespaceUri)
        {
            XmlSchemaCompletionCollection schemas = new XmlSchemaCompletionCollection();

            foreach (XmlSchemaCompletion schema in this)
            {
                if (schema.NamespaceUri == namespaceUri)
                {
                    schemas.Add(schema);
                }
            }
            return(schemas);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
 XmlView()
 {
     schemas = XmlEditorService.RegisteredXmlSchemas.Schemas;
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 10
0
 public XmlSchemaCompletionCollection(XmlSchemaCompletionCollection schemas)
 {
     AddRange(schemas);
 }
Ejemplo n.º 11
0
 public XmlCodeCompletionBinding(XmlSchemaFileAssociations schemaFileAssociations)
 {
     this.schemaFileAssociations = schemaFileAssociations;
     this.schemas = schemaFileAssociations.Schemas;
 }
 public XmlSchemaDefinition(XmlSchemaCompletionCollection schemas, XmlSchemaCompletion currentSchema)
 {
     this.schemas       = schemas;
     this.currentSchema = currentSchema;
 }