Browse Source

Included XmlEditor addin.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@313 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
bd5ea18519
  1. 233
      data/schemas/AddIn.xsd
  2. 98
      data/schemas/W3C-License.html
  3. 2534
      data/schemas/XMLSchema.xsd
  4. 1015
      data/schemas/appconfig.xsd
  5. 198
      data/schemas/manifest.xsd
  6. 2137
      data/schemas/nant-0.84.xsd
  7. 2216
      data/schemas/nant.xsd
  8. 59
      data/schemas/readme.txt
  9. 6535
      data/schemas/wix.xsd
  10. 388
      data/schemas/xslt.xsd
  11. 4
      src/AddIns/DisplayBindings/XmlEditor/Project/AssemblyInfo.cs
  12. 69
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditor.addin
  13. 3
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditor.csproj
  14. 12
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditorAddInOptions.cs
  15. 43
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlSchemaAssociation.cs
  16. 2
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlSchemaManager.cs
  17. 2
      src/AddIns/DisplayBindings/XmlEditor/Project/XmlView.cs
  18. 4
      src/AddIns/DisplayBindings/XmlEditor/Test/AssemblyInfo.cs
  19. 5
      src/SharpDevelop.sln

233
data/schemas/AddIn.xsd

@ -0,0 +1,233 @@ @@ -0,0 +1,233 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Ivo Kovacka (Kovacka) -->
<!--W3C Schema generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.icsharpcode.net/2005/addin" xmlns="http://www.icsharpcode.net/2005/addin">
<xs:complexType name="AddIn">
<xs:choice maxOccurs="unbounded">
<xs:element ref="Path" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="Runtime" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="author" type="xs:string" use="required"/>
<xs:attribute name="copyright" type="xs:string" use="required"/>
<xs:attribute name="url" type="xs:anyURI" use="required"/>
<xs:attribute name="description" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="AddIn" type="AddIn"/>
<xs:complexType name="Import">
<xs:attribute name="assembly" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="Import" type="Import"/>
<xs:complexType name="Runtime">
<xs:sequence>
<xs:element ref="Import" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Runtime" type="Runtime"/>
<xs:complexType name="Path" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="FileFilter"/>
<xs:element ref="Condition"/>
<xs:element ref="Icon"/>
<xs:element ref="DisplayBinding"/>
<xs:element ref="ToolbarItem"/>
<xs:element ref="EditAction"/>
<xs:element ref="DialogPanel"/>
<xs:element ref="LanguageBinding"/>
<xs:element ref="Class"/>
<xs:element ref="MenuItem"/>
<xs:element ref="SharpQueryConnection"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="Path" type="Path"/>
<xs:complexType name="Condition">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="activewindow" type="xs:string" use="optional"/>
<xs:attribute name="openwindow" type="xs:string" use="optional"/>
<xs:attribute name="iscombineopen" type="xs:string" use="optional"/>
<xs:attribute name="activeproject" type="xs:string" use="optional"/>
<xs:attribute name="openproject" type="xs:string" use="optional"/>
<xs:attribute name="textcontent" type="xs:string" use="optional"/>
<xs:attribute name="ownerstate" type="xs:string" use="optional"/>
<xs:attribute name="string" type="xs:string" use="optional"/>
<xs:attribute name="equals" type="xs:string" use="optional"/>
<xs:attribute name="action" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Exclude"/>
<xs:enumeration value="Disable"/>
<xs:enumeration value="Nothing"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:element name="Condition" type="Condition"/>
<xs:complexType name="Conditional">
<xs:complexContent>
<xs:extension base="Condition">
<xs:choice maxOccurs="unbounded">
<xs:element ref="Condition"/>
<xs:element ref="Conditional"/>
<xs:element ref="And"/>
<xs:element ref="Or"/>
<xs:element ref="Not"/>
<xs:element ref="Class"/>
<xs:element ref="DialogPanel"/>
<xs:element ref="DisplayBinding"/>
<xs:element ref="LanguageBinding"/>
<xs:element ref="MenuItem"/>
<xs:element ref="ToolbarItem"/>
</xs:choice>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="Conditional" type="Conditional"/>
<xs:complexType name="Not">
<xs:choice>
<xs:element ref="Condition"/>
<xs:element ref="And"/>
<xs:element ref="Not"/>
<xs:element ref="Or"/>
</xs:choice>
</xs:complexType>
<xs:element name="Not" type="Not"/>
<xs:complexType name="And">
<xs:choice minOccurs="2" maxOccurs="unbounded">
<xs:element ref="Not"/>
<xs:element ref="Or"/>
<xs:element ref="And"/>
<xs:element ref="Condition"/>
</xs:choice>
</xs:complexType>
<xs:element name="And" type="And"/>
<xs:complexType name="Or">
<xs:choice minOccurs="2" maxOccurs="unbounded">
<xs:element ref="Not"/>
<xs:element ref="Or"/>
<xs:element ref="And"/>
<xs:element ref="Condition"/>
</xs:choice>
</xs:complexType>
<xs:element name="Or" type="Or"/>
<xs:complexType name="AbstractCodon" abstract="true">
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="class" type="xs:string" use="optional"/>
<xs:attribute name="insertbefore" type="xs:string" use="optional"/>
<xs:attribute name="insertafter" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="Class">
<xs:complexContent>
<xs:extension base="AbstractCodon"/>
</xs:complexContent>
</xs:complexType>
<xs:element name="Class" type="Class"/>
<xs:complexType name="DialogPanel">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Conditional"/>
<xs:element ref="DialogPanel"/>
<xs:element ref="Condition"/>
</xs:choice>
<xs:attribute name="label" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DialogPanel" type="DialogPanel"/>
<xs:complexType name="DisplayBinding">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="supportedformats" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DisplayBinding" type="DisplayBinding"/>
<xs:complexType name="FileFilter">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="extensions" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="FileFilter" type="FileFilter"/>
<xs:complexType name="Icon">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="extensions" type="xs:string" use="optional"/>
<xs:attribute name="language" type="xs:string" use="optional"/>
<xs:attribute name="location" type="xs:string" use="optional"/>
<xs:attribute name="resource" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="Icon" type="Icon"/>
<xs:complexType name="LanguageBinding">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="supportedextensions" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="LanguageBinding" type="LanguageBinding"/>
<xs:complexType name="MenuItem">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Condition"/>
<xs:element ref="MenuItem"/>
<xs:element ref="Conditional"/>
</xs:choice>
<xs:attribute name="label" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
<xs:attribute name="icon" type="xs:string" use="optional"/>
<xs:attribute name="shortcut" type="xs:string" use="optional"/>
<xs:attribute name="attribute" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RecentFiles"/>
<xs:enumeration value="RecentProjects"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="link" type="xs:anyURI" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="MenuItem" type="MenuItem"/>
<xs:complexType name="SharpQueryConnection">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="schema" type="xs:string" use="required"/>
<xs:attribute name="node" type="xs:string" use="required"/>
<xs:attribute name="showUnsuported" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="SharpQueryConnection" type="SharpQueryConnection"/>
<xs:complexType name="ToolbarItem">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Condition"/>
<xs:element ref="ToolbarItem"/>
<xs:element ref="Conditional"/>
</xs:choice>
<xs:attribute name="icon" type="xs:string" use="optional"/>
<xs:attribute name="tooltip" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="ToolbarItem" type="ToolbarItem"/>
<xs:complexType name="EditAction">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="keys" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="EditAction" type="EditAction"/>
</xs:schema>

98
data/schemas/W3C-License.html

@ -0,0 +1,98 @@ @@ -0,0 +1,98 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>W3C Software License</title>
<style type="text/css">
<!--
h3#version { margin-top: -0.8em;}
-->
</style>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<h1>W3C<sup>®</sup> SOFTWARE NOTICE AND LICENSE</h1>
<h3 id="version"><a
href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</a></h3>
<p>This work (and included software, documentation such as READMEs, or other
related items) is being provided by the copyright holders under the following
license. By obtaining, using and/or copying this work, you (the licensee)
agree that you have read, understood, and will comply with the following
terms and conditions.</p>
<p>Permission to copy, modify, and distribute this software and its
documentation, with or without modification,&nbsp;for any purpose and without
fee or royalty is hereby granted, provided that you include the following on
ALL copies of the software and documentation or portions thereof, including
modifications:</p>
<ol>
<li>The full text of this NOTICE in a location viewable to users of the
redistributed or derivative work.</li>
<li>Any pre-existing intellectual property disclaimers, notices, or terms
and conditions. If none exist, the <a
href="copyright-software-short-notice-20021231.html">W3C Software Short
Notice</a> should be included (hypertext is preferred, text is permitted)
within the body of any redistributed or derivative code.</li>
<li>Notice of any changes or modifications to the files, including the date
changes were made. (We recommend you provide URIs to the location from
which the code is derived.)</li>
</ol>
<p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE
ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
DOCUMENTATION.</p>
<p>The name and trademarks of copyright holders may NOT be used in
advertising or publicity pertaining to the software without specific, written
prior permission. Title to copyright in this software and any associated
documentation will at all times remain with copyright holders.</p>
<p></p>
<p>____________________________________</p>
<p>This formulation of W3C's notice and license became active on December 31
2002. This version removes the copyright ownership notice such that this
license can be used with materials other than those owned by the W3C,
reflects that ERCIM is now a host of the W3C, includes references to this
specific dated version of the license, and removes the ambiguous grant of
"use". Otherwise, this version is the same as the <a
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous
version</a> and is written so as to preserve the <a
href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free
Software Foundation's assessment of GPL compatibility</a> and <a
href="http://www.opensource.org/licenses/W3C.php">OSI's certification</a>
under the <a href="http://www.opensource.org/docs/definition.php">Open Source
Definition</a>. Please see our <a
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</a> for
common questions about using materials from our site, including specific
terms and conditions for packages like libwww, Amaya, and Jigsaw. Other
questions about this notice can be directed to <a
href="mailto:site-policy@w3.org">site-policy@w3.org</a>.<br />
&nbsp;</p>
<address>
Joseph Reagle &lt;<a
href="mailto:site-policy@w3.org">site-policy@w3.org&gt;</a>
</address>
<p>Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06 16:02:49 slesch Exp $</p>
</body>
</html>

2534
data/schemas/XMLSchema.xsd

File diff suppressed because it is too large Load Diff

1015
data/schemas/appconfig.xsd

File diff suppressed because it is too large Load Diff

198
data/schemas/manifest.xsd

@ -0,0 +1,198 @@ @@ -0,0 +1,198 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:schemas-microsoft-com:asm.v1"
xmlns="urn:schemas-microsoft-com:asm.v1"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>
Copyright (C) 2005 Matthew Ward
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</xs:documentation>
</xs:annotation>
<xs:element name="assembly">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="description" minOccurs="0" maxOccurs="1"/>
<xs:element name="noInherit" minOccurs="0" maxOccurs="1"/>
<xs:element name="noInheritable" minOccurs="0" maxOccurs="1"/>
<xs:element name="assemblyIdentity" type="assemblyIdentity" minOccurs="1" maxOccurs="1"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="clrClass" type="clrClass" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="comInterfaceExternalProxyStub" type="comInterfaceExternalProxyStub" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="clrSurrogate" type="clrSurrogate" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="dependency" type="dependency" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="file" type="file" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:choice>
<xs:attribute name="manifestVersion" type="xs:string" default="1.0" use="required"/>
</xs:complexType>
</xs:element>
<xs:complexType name="assemblyIdentity">
<xs:attribute name="type" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="language" type="xs:string"/>
<xs:attribute name="processorArchitecture" type="xs:string"/>
<xs:attribute name="version" type="xs:string" use="required"/>
<xs:attribute name="publicKeyToken" type="xs:string"/>
</xs:complexType>
<xs:complexType name="dependency">
<xs:sequence>
<xs:element name="dependentAssembly" type="dependentAssembly" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="optional" type="xs:string"/>
</xs:complexType>
<xs:complexType name="dependentAssembly">
<xs:sequence>
<xs:element name="assemblyIdentity" type="assemblyIdentity" minOccurs="1" maxOccurs="1"/>
<xs:element name="bindingRedirect" type="bindingRedirect" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="file">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="comClass" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="progid" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="clsid" type="xs:string" use="required"/>
<xs:attribute name="threadingmodel" type="xs:string" use="required"/>
<xs:attribute name="progid" type="xs:string"/>
<xs:attribute name="tlbid" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="comInterfaceProxyStub" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="iid" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="numMethods" type="xs:string"/>
<xs:attribute name="tlbid" type="xs:string"/>
<xs:attribute name="proxyStubClsid32" type="xs:string"/>
<xs:attribute name="baseInterface" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="typelib" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="version" type="xs:string" use="required"/>
<xs:attribute name="helpdir" type="xs:string" use="required"/>
<xs:attribute name="resourceid" type="xs:string"/>
<xs:attribute name="tlbid" type="xs:string" use="required"/>
<xs:attribute name="flags" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="windowClass" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="versioned" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="hashalg" type="xs:string"/>
<xs:attribute name="hash" type="xs:string"/>
</xs:complexType>
<xs:complexType name="clrClass">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="progid" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="clsid" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="progid" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="threadingModel" type="xs:string" default="Both"/>
<xs:attribute name="runtimeVersion" type="xs:string"/>
<xs:attribute name="tlbid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="clrSurrogate">
<xs:attribute name="clsid" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="runtimeVersion" type="xs:string"/>
</xs:complexType>
<xs:complexType name="comInterfaceExternalProxyStub">
<xs:attribute name="iid" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="tlbid" type="xs:string"/>
<xs:attribute name="numMethods" type="xs:string"/>
<xs:attribute name="proxyStubClsid32" type="xs:string"/>
<xs:attribute name="baseInterface" type="xs:string"/>
</xs:complexType>
<xs:complexType name="bindingRedirect">
<xs:attribute name="oldVersion" type="xs:string" use="required"/>
<xs:attribute name="newVersion" type="xs:string" use="required"/>
</xs:complexType>
<!-- Cheat - This and the following elements are added so app.config autocompletion
will work if the user specifies the urn:schemas-microsoft-com:asm.v1 namespace
in an app.config file. -->
<xs:element name="assemblyBinding">
<xs:complexType>
<xs:choice>
<xs:element name="dependentAssembly" type="dependentAssemblyType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="probing" type="probing" minOccurs="0" maxOccurs="1"/>
<xs:element name="publisherPolicy" type="publisherPolicy" minOccurs="0" maxOccurs="1"/>
<xs:element name="qualifyAssembly" type="qualifyAssembly" minOccurs="0" maxOccurs="1"/>
</xs:choice>
<xs:attribute name="appliesTo" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:complexType name="dependentAssemblyType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="assemblyIdentity" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="publicKeyToken" type="xs:string"/>
<xs:attribute name="culture" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="codeBase" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="version" type="xs:string" use="required"/>
<xs:attribute name="href" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="bindingRedirect" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="oldVersion" type="xs:string" use="required"/>
<xs:attribute name="newVersion" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="publisherPolicy" type="publisherPolicy" minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="probing">
<xs:attribute name="privatePath" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="publisherPolicy">
<xs:attribute name="apply" type="yesNoEnum" use="required"/>
</xs:complexType>
<xs:complexType name="qualifyAssembly">
<xs:attribute name="partialName" type="xs:string" use="required"/>
<xs:attribute name="fullName" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>

2137
data/schemas/nant-0.84.xsd

File diff suppressed because it is too large Load Diff

2216
data/schemas/nant.xsd

File diff suppressed because it is too large Load Diff

59
data/schemas/readme.txt

@ -0,0 +1,59 @@ @@ -0,0 +1,59 @@
AddIn.xsd
---------
SharpDevelop schema for .addin files.
Created by Ivo Kovacka.
GNU General Public License.
appconfig.xsd
-------------
Schema for app.config and web.config files.
Created by Matt Ward
GNU General Public License.
manifest.xsd
-------------
Schema for .manifest files.
Created by Matt Ward
GNU General Public License.
NAnt-0.84.xsd
-------------
http://nant.sourceforge.net/
GNU General Public License.
NAnt.xsd
--------
NAnt 0.85 RC 2 schema.
http://nant.sourceforge.net/release/0.85-rc2/nant.xsd
GNU General Public License.
Wix.xsd
-------
http://sourceforge.net/projects/wix/
Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
XMLSchema.xsd
-------------
W3C Xml Schema.
http://www.w3.org/2001/XMLSchema.xsd
W3C Software License (http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231) - A copy of this license can be found in W3C-License.html
xslt.xsd
--------
Schema for xslt files.
Created by Matt Ward
GNU General Public License.

6535
data/schemas/wix.xsd

File diff suppressed because it is too large Load Diff

388
data/schemas/xslt.xsd

@ -0,0 +1,388 @@ @@ -0,0 +1,388 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/XSL/Transform"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>
Copyright (C) 2005 Matthew Ward
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:element name="stylesheet">
<xs:complexType mixed="true">
<xs:group ref="topLevel"/>
<xs:attributeGroup ref="topLevelAttributes"/>
</xs:complexType>
</xs:element>
<xs:element name="transform">
<xs:complexType mixed="true">
<xs:group ref="topLevel"/>
<xs:attributeGroup ref="topLevelAttributes"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="topLevelAttributes">
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="version" type="xs:NMTOKEN" use="required"/>
<xs:attribute ref="xml:space"/>
</xs:attributeGroup>
<xs:group name="topLevel">
<xs:sequence>
<xs:element ref="import" minOccurs="0" maxOccurs="unbounded"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="include"/>
<xs:element ref="strip-space"/>
<xs:element ref="preserve-space"/>
<xs:element ref="output"/>
<xs:element ref="key"/>
<xs:element ref="decimal-format"/>
<xs:element ref="attribute-set"/>
<xs:element ref="variable"/>
<xs:element ref="param"/>
<xs:element ref="template"/>
<xs:element ref="namespace-alias"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:element name="import">
<xs:complexType>
<xs:attribute name="href" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element name="include">
<xs:complexType>
<xs:attribute name="href" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element name="strip-space">
<xs:complexType>
<xs:attribute name="elements" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="preserve-space">
<xs:complexType>
<xs:attribute name="elements" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="key">
<xs:complexType>
<xs:attribute name="name" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="match" use="required" type="xs:string"/>
<xs:attribute name="use" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="decimal-format">
<xs:complexType>
<xs:attribute name="name" type="xs:NMTOKEN"/>
<xs:attribute name="decimal-separator" type="xs:string" default="."/>
<xs:attribute name="grouping-separator" type="xs:string" default=","/>
<xs:attribute name="infinity" type="xs:string" default="Infinity"/>
<xs:attribute name="minus-sign" type="xs:string" default="-"/>
<xs:attribute name="NaN" type="xs:string" default="NaN"/>
<xs:attribute name="percent" type="xs:string" default="%"/>
<xs:attribute name="per-mille" type="xs:string" default="&#2030;"/>
<xs:attribute name="zero-digit" type="xs:string" default="0"/>
<xs:attribute name="digit" type="xs:string" default="#"/>
<xs:attribute name="pattern-separator" type="xs:string" default=";"/>
</xs:complexType>
</xs:element>
<xs:element name="attribute-set">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="attribute"/>
</xs:sequence>
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="use-attribute-sets" type="xs:NMTOKENS"/>
</xs:complexType>
</xs:element>
<xs:element name="attribute">
<xs:complexType mixed="true">
<xs:group ref="charInstructions"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="namespace" type="xs:string"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:group name="charInstructions">
<xs:choice>
<xs:element ref="apply-templates"/>
<xs:element ref="call-template"/>
<xs:element ref="apply-imports"/>
<xs:element ref="for-each"/>
<xs:element ref="value-of"/>
<xs:element ref="copy-of"/>
<xs:element ref="number"/>
<xs:element ref="choose"/>
<xs:element ref="if"/>
<xs:element ref="text"/>
<xs:element ref="copy"/>
<xs:element ref="variable"/>
<xs:element ref="message"/>
<xs:element ref="fallback"/>
</xs:choice>
</xs:group>
<xs:element name="apply-templates">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="sort"/>
<xs:element ref="with-param"/>
</xs:choice>
<xs:attribute name="select" type="xs:string" default="node()"/>
<xs:attribute name="mode" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="call-template">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="with-param"/>
</xs:choice>
<xs:attribute name="name" use="required" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="for-each">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="instructions"/>
<xs:element ref="sort"/>
</xs:choice>
<xs:attribute name="select" type="xs:string" use="required"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:group name="instructions">
<xs:choice>
<xs:group ref="charInstructions"/>
<xs:element ref="processing-instruction"/>
<xs:element ref="element"/>
<xs:element ref="attribute"/>
</xs:choice>
</xs:group>
<xs:element name="sort">
<xs:complexType>
<xs:attribute name="select" type="xs:string" default="."/>
<xs:attribute name="lang" type="xs:string"/>
<xs:attribute name="data-type" type="xs:string" default="text"/>
<xs:attribute name="order" type="xs:string" default="ascending"/>
<xs:attribute name="case-order" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="processing-instruction">
<xs:complexType mixed="true">
<xs:group ref="charInstructions"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="element">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="namespace" type="xs:string"/>
<xs:attribute name="use-attribute-sets" type="xs:NMTOKENS"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="with-param">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="name" type="xs:NMTOKENS" use="required"/>
<xs:attribute name="select" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="value-of">
<xs:complexType>
<xs:attribute name="select" type="xs:string" use="required"/>
<xs:attribute name="disable-output-escaping" type="yesNoEnum" default="no"/>
</xs:complexType>
</xs:element>
<xs:element name="copy-of">
<xs:complexType>
<xs:attribute name="select" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="number">
<xs:complexType>
<xs:attribute name="level" default="single">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="single"/>
<xs:enumeration value="multiple"/>
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="count" type="xs:string"/>
<xs:attribute name="from" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="format" type="xs:string" default="1"/>
<xs:attribute name="lang" type="xs:string"/>
<xs:attribute name="letter-value" type="xs:string"/>
<xs:attribute name="grouping-separator" type="xs:string"/>
<xs:attribute name="grouping-size" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="choose">
<xs:complexType>
<xs:sequence>
<xs:element ref="when" minOccurs="1" maxOccurs="unbounded"/>
<xs:element ref="otherwise" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="when">
<xs:complexType>
<xs:group ref="instructions"/>
<xs:attribute name="test" type="xs:string" use="required"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="otherwise">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="if">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="test" type="xs:string" use="required"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="text">
<xs:complexType mixed="true">
<xs:attribute name="disable-output-escaping" type="yesNoEnum" default="no"/>
</xs:complexType>
</xs:element>
<xs:element name="copy">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="use-attribute-sets" type="xs:NMTOKENS"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="message">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="terminate" type="yesNoEnum" default="no"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="fallback">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="variable">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="select" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="param">
<xs:complexType mixed="true">
<xs:group ref="instructions"/>
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="select" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="template">
<xs:complexType mixed="true">
<xs:choice>
<xs:group ref="instructions"/>
<xs:element ref="param" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="match" type="xs:string"/>
<xs:attribute name="name" type="xs:NMTOKEN"/>
<xs:attribute name="priority" type="xs:string"/>
<xs:attribute name="mode" type="xs:NMTOKEN"/>
<xs:attribute ref="xml:space"/>
</xs:complexType>
</xs:element>
<xs:element name="namespace-alias">
<xs:complexType>
<xs:attribute name="stylesheet-prefix" type="xs:string" use="required"/>
<xs:attribute name="result-prefix" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="apply-imports"/>
<xs:element name="output">
<xs:complexType mixed="true">
<xs:attribute name="method" type="xs:NMTOKEN"/>
<xs:attribute name="version" type="xs:NMTOKEN"/>
<xs:attribute name="encoding" type="xs:string"/>
<xs:attribute name="omit-xml-declaration" type="yesNoEnum" default="yes"/>
<xs:attribute name="standalone" type="yesNoEnum" default="no"/>
<xs:attribute name="doctype-public" type="xs:string"/>
<xs:attribute name="doctype-system" type="xs:string"/>
<xs:attribute name="cdata-section-elements" type="xs:NMTOKEN"/>
<xs:attribute name="indent" type="yesNoEnum"/>
<xs:attribute name="media-type" type="xs:string" default="text/xml"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="yesNoEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

4
src/AddIns/DisplayBindings/XmlEditor/Project/AssemblyInfo.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following
@ -23,7 +23,7 @@ using System.Runtime.CompilerServices; @@ -23,7 +23,7 @@ using System.Runtime.CompilerServices;
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("1.1.0.1964")]
[assembly: AssemblyVersion("2.0.0.1")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.

69
src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditor.addin

@ -4,28 +4,29 @@ @@ -4,28 +4,29 @@
url = "http://www.icsharpcode.net"
description = "Xml Editor"
version = "1.0.0">
<Runtime>
<Import assembly="XmlEditor.dll"/>
<Import assembly="../../../../bin/SharpDevelop.DefaultTexteditor.dll"/>
<Import assembly = "XmlEditor.dll"/>
<Import assembly = "/ICSharpCode.SharpDevelop"/>
</Runtime>
<!-- Xml Editor View -->
<Extension path = "/SharpDevelop/Workbench/DisplayBindings">
<Path name = "/SharpDevelop/Workbench/DisplayBindings">
<DisplayBinding id = "XmlEditor"
insertbefore = "Text"
supportedformats = "Text Files,Source Files"
class = "ICSharpCode.XmlEditor.XmlDisplayBinding"/>
</Extension>
</Path>
<!-- Xml parser used to initiate the folding update -->
<Extension path = "/Workspace/Parser">
<Class id = "XmlFoldingParser"
class = "ICSharpCode.XmlEditor.Parser"/>
</Extension>
<Path name = "/Workspace/Parser">
<Parser id = "XmlFoldingParser"
supportedextensions = ".xml"
class = "ICSharpCode.XmlEditor.Parser"/>
</Path>
<!-- Right click menu -->
<Extension path = "/SharpDevelop/ViewContent/XmlEditor/ContextMenu">
<Path name = "/SharpDevelop/ViewContent/XmlEditor/ContextMenu">
<MenuItem id = "Cut"
label = "${res:XML.TextAreaContextMenu.Cut}"
icon = "Icons.16x16.CutIcon"
@ -45,7 +46,7 @@ @@ -45,7 +46,7 @@
label = "${res:XML.MainMenu.EditMenu.Delete}"
icon = "Icons.16x16.DeleteIcon"
class = "ICSharpCode.SharpDevelop.Commands.Delete"/>
<MenuItem id = "Separator1" label = "-" />
<MenuItem id = "Separator1" type = "Separator"/>
<MenuItem id = "Save"
label = "${res:XML.MainMenu.FileMenu.Save}"
icon = "Icons.16x16.SaveIcon"
@ -57,44 +58,43 @@ @@ -57,44 +58,43 @@
<MenuItem id = "File"
label = "${res:XML.MainMenu.FileMenu.Close}"
class = "ICSharpCode.SharpDevelop.Commands.CloseFile"/>
<MenuItem id = "Separator2" label = "-" />
<MenuItem id = "Separator2" type = "Separator"/>
<MenuItem id = "CreateSchema"
label = "${res:ICSharpCode.XmlEditor.CreateSchemaMenuLabel}"
class = "ICSharpCode.XmlEditor.CreateSchemaCommand" />
<MenuItem id = "ValidateXml"
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}"
class = "ICSharpCode.XmlEditor.ValidateXmlCommand"
class = "ICSharpCode.XmlEditor.ValidateXmlCommand"
shortcut = "Control|Shift|V" />
<MenuItem id = "Indent"
label = "${res:XML.TextAreaContextMenu.Indent}"
shortcut = "Control|I"
class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.IndentSelection" />
<MenuItem id = "FileMode" label = "${res:XML.TextAreaContextMenu.FileMode}">
<MenuItem id = "HighlightBuilder" label = "boguslabel" class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.HighlightingTypeBuilder" />
<MenuItem id = "FileMode" label = "${res:XML.TextAreaContextMenu.FileMode}" type="Menu">
<MenuItem id = "HighlightBuilder" type="Builder" class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.HighlightingTypeBuilder" />
</MenuItem>
<MenuItem id = "Separator3" label = "-" />
<MenuItem id = "Separator3" type = "Separator"/>
<MenuItem id = "Options"
label = "${res:XML.TextAreaContextMenu.BufferOptions}"
icon = "Icons.16x16.PropertiesIcon"
class ="ICSharpCode.SharpDevelop.DefaultEditor.Commands.ShowBufferOptions"/>
</Extension>
</Path>
<!-- Tools menu option -->
<Extension path = "/SharpDevelop/Workbench/MainMenu/Tools">
<Conditional activewindow = "ICSharpCode.XmlEditor.XmlView">
<Path path = "/SharpDevelop/Workbench/MainMenu/Tools">
<Condition name = "WindowActive" activewindow="ICSharpCode.XmlEditor.XmlView">
<MenuItem id = "ValidateXml"
insertbefore = "Separator4"
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}"
description = "Validates the xml against the known schemas."
label = "${res:ICSharpCode.XmlEditor.ValidateXmlMenuLabel}"
description = "Validates the xml against the known schemas."
class = "ICSharpCode.XmlEditor.ValidateXmlCommand"
shortcut = "Control|Shift|V"
/>
</Conditional>
</Extension>
</Condition>
</Path>
<!-- Options panel -->
<Extension path = "/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions">
<Path path = "/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions">
<DialogPanel id = "XmlSchemasPanel"
insertafter = "VBSpecificOptions"
label = "${res:ICSharpCode.XmlEditor.XmlSchemasPanel.Title}"
@ -104,10 +104,9 @@ @@ -104,10 +104,9 @@
insertbefore = "XmlSchemasPanel"
label = "${res:ICSharpCode.XmlEditor.XmlEditorOptionsPanel.Title}"
class = "ICSharpCode.XmlEditor.XmlEditorOptionsPanel" />
</Extension>
<Extension path = "/AddIns/XmlEditor/EditActions">
<EditAction id = "XmlCompletionPopup" class = "ICSharpCode.XmlEditor.CodeCompletionPopupCommand" keys = "Control|Space"/>
</Extension>
</Path>
<Path path = "/AddIns/XmlEditor/EditActions">
<EditAction id = "XmlCompletionPopup" class = "ICSharpCode.XmlEditor.CodeCompletionPopupCommand" keys = "Control|Space"/>
</Path>
</AddIn>

3
src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditor.csproj

@ -68,6 +68,9 @@ @@ -68,6 +68,9 @@
<EmbeddedResource Include="XmlSchemasPanel.xfrm" />
<EmbeddedResource Include="SelectXmlSchema.xfrm" />
<EmbeddedResource Include="XmlEditorOptionsPanel.xfrm" />
<None Include="XmlEditor.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj">

12
src/AddIns/DisplayBindings/XmlEditor/Project/XmlEditorAddInOptions.cs

@ -90,13 +90,11 @@ namespace ICSharpCode.XmlEditor @@ -90,13 +90,11 @@ namespace ICSharpCode.XmlEditor
/// </remarks>
public static XmlSchemaAssociation GetSchemaAssociation(string extension)
{
object property = Properties.Get(extension);
string property = Properties.Get("ext" + extension, "");
XmlSchemaAssociation association = null;
XmlSchemaAssociation association = property as XmlSchemaAssociation;
XmlElement element = property as XmlElement;
if (element != null) {
association = XmlSchemaAssociation.ConvertFromXmlElement(element) as XmlSchemaAssociation;
if (property.Length > 0) {
association = XmlSchemaAssociation.ConvertFromString(property);
}
// Use default?
@ -109,7 +107,7 @@ namespace ICSharpCode.XmlEditor @@ -109,7 +107,7 @@ namespace ICSharpCode.XmlEditor
public static void SetSchemaAssociation(XmlSchemaAssociation association)
{
Properties.Set(association.Extension, association);
Properties.Set("ext" + association.Extension, association.ConvertToString());
}
public static bool ShowAttributesWhenFolded {

43
src/AddIns/DisplayBindings/XmlEditor/Project/XmlSchemaAssociation.cs

@ -35,9 +35,6 @@ namespace ICSharpCode.XmlEditor @@ -35,9 +35,6 @@ namespace ICSharpCode.XmlEditor
string namespacePrefix = String.Empty;
static readonly string schemaAssociationElementName = "SchemaAssociation";
static readonly string extensionAttributeName = "extension";
static readonly string namespaceAttributeName = "namespace";
static readonly string prefixAttributeName = "prefix";
public XmlSchemaAssociation(string extension)
: this(extension, String.Empty, String.Empty)
@ -114,7 +111,7 @@ namespace ICSharpCode.XmlEditor @@ -114,7 +111,7 @@ namespace ICSharpCode.XmlEditor
association = new XmlSchemaAssociation(extension, @"http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd");
break;
case ".addin":
association = new XmlSchemaAssociation(extension, @"http://www.icsharpcode.net/2004/addin");
association = new XmlSchemaAssociation(extension, @"http://www.icsharpcode.net/2005/addin");
break;
case ".xsl":
case ".xslt":
@ -161,43 +158,15 @@ namespace ICSharpCode.XmlEditor @@ -161,43 +158,15 @@ namespace ICSharpCode.XmlEditor
/// <summary>
/// Creates an XmlSchemaAssociation from the saved xml.
/// </summary>
public object FromXmlElement(XmlElement element)
public static XmlSchemaAssociation ConvertFromString(string text)
{
return XmlSchemaAssociation.ConvertFromXmlElement(element);
string[] parts = text.Split(new char[] {'|'}, 3);
return new XmlSchemaAssociation(parts[0], parts[1], parts[2]);
}
/// <summary>
/// Creates an XmlSchemaAssociation from the saved xml.
/// </summary>
public static object ConvertFromXmlElement(XmlElement element)
{
XmlSchemaAssociation association = null;
if (element.ChildNodes.Count == 1) {
XmlElement childElement = element.ChildNodes[0] as XmlElement;
if (childElement != null) {
if (childElement.Name == schemaAssociationElementName) {
association = new XmlSchemaAssociation(childElement.GetAttribute(extensionAttributeName), childElement.GetAttribute(namespaceAttributeName), childElement.GetAttribute(prefixAttributeName));
} else {
throw new ApplicationException(childElement.Name);
}
}
}
return association;
}
/// <summary>
/// Creates an xml element from an XmlSchemaAssociation.
/// </summary>
public XmlElement ToXmlElement(XmlDocument doc)
public string ConvertToString()
{
XmlElement element = doc.CreateElement(schemaAssociationElementName);
element.SetAttribute(extensionAttributeName, extension);
element.SetAttribute(namespaceAttributeName, namespaceUri);
element.SetAttribute(prefixAttributeName, namespacePrefix);
return element;
return extension + "|" + namespaceUri + "|" + namespacePrefix;
}
}
}

2
src/AddIns/DisplayBindings/XmlEditor/Project/XmlSchemaManager.cs

@ -135,6 +135,8 @@ namespace ICSharpCode.XmlEditor @@ -135,6 +135,8 @@ namespace ICSharpCode.XmlEditor
/// </summary>
void ReadSchemas()
{
// MSBuild schemas are in framework directory:
ReadSchemas(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory(), true);
ReadSchemas(SchemaFolder, true);
ReadSchemas(UserSchemaFolder, false);
}

2
src/AddIns/DisplayBindings/XmlEditor/Project/XmlView.cs

@ -332,7 +332,7 @@ namespace ICSharpCode.XmlEditor @@ -332,7 +332,7 @@ namespace ICSharpCode.XmlEditor
public void ParseInformationUpdated(ParseInformation parseInfo)
{
UpdateFolding();
xmlEditor.BeginInvoke(new MethodInvoker(UpdateFolding));
}
#endregion

4
src/AddIns/DisplayBindings/XmlEditor/Test/AssemblyInfo.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following
@ -23,7 +23,7 @@ using System.Runtime.CompilerServices; @@ -23,7 +23,7 @@ using System.Runtime.CompilerServices;
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("1.1.0.1964")]
[assembly: AssemblyVersion("2.0.0.1")]
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.

5
src/SharpDevelop.sln

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# SharpDevelop 2.0.0.306
# SharpDevelop 2.0.0.309
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AddIns", "AddIns", "{14A277EE-7DF1-4529-B639-7D1EF334C1C5}"
ProjectSection(SolutionItems) = postProject
EndProjectSection
@ -8,6 +8,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display @@ -8,6 +8,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display
ProjectSection(SolutionItems) = postProject
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XmlEditor", "AddIns\DisplayBindings\XmlEditor\Project\XmlEditor.csproj", "{6B717BD1-CD5E-498C-A42E-9E6A4584DC48}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormDesigner", "AddIns\DisplayBindings\FormDesigner\Project\FormDesigner.csproj", "{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceEditor", "AddIns\DisplayBindings\ResourceEditor\Project\ResourceEditor.csproj", "{CBC6C247-747B-4908-B09A-4D2E0F640B6B}"
@ -166,6 +168,7 @@ Global @@ -166,6 +168,7 @@ Global
{4EA396ED-64AD-4AD0-A67A-AB363F3E0C79} = {14A277EE-7DF1-4529-B639-7D1EF334C1C5}
{CBC6C247-747B-4908-B09A-4D2E0F640B6B} = {4EA396ED-64AD-4AD0-A67A-AB363F3E0C79}
{7D7E92DF-ACEB-4B69-92C8-8AC7A703CD57} = {4EA396ED-64AD-4AD0-A67A-AB363F3E0C79}
{6B717BD1-CD5E-498C-A42E-9E6A4584DC48} = {4EA396ED-64AD-4AD0-A67A-AB363F3E0C79}
{1F1AC7CD-D154-45BB-8EAF-804CA8055F5A} = {FEB825FA-4AD8-425D-8E4A-B5A18EE1B81C}
{BF38FB72-B380-4196-AF8C-95749D726C61} = {FEB825FA-4AD8-425D-8E4A-B5A18EE1B81C}
{6e59af58-f635-459a-9a35-c9ac41c00339} = {FEB825FA-4AD8-425D-8E4A-B5A18EE1B81C}

Loading…
Cancel
Save