~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor/XmlSchemaManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                {
78
78
                        XmlSchemaCompletionData data = null;
79
79
                        
80
 
                        XmlSchemaAssociation association = XmlEditorAddInOptions.GetSchemaAssociation (fileExtension);
 
80
                        var association = XmlEditorOptions.GetSchemaAssociation (fileExtension);
81
81
                        if (association != null)
82
82
                                if (association.NamespaceUri.Length > 0)
83
83
                                        data = SchemaCompletionDataItems [association.NamespaceUri];
91
91
                /// </summary>
92
92
                public static string GetNamespacePrefix(string extension)
93
93
                {
94
 
                        XmlSchemaAssociation association = XmlEditorAddInOptions.GetSchemaAssociation(extension);
 
94
                        var association = XmlEditorOptions.GetSchemaAssociation(extension);
95
95
                        if (association != null) {
96
96
                                return association.NamespacePrefix;
97
97
                        }
118
118
                /// Adds the schema to the user schemas folder and makes the
119
119
                /// schema available to the xml editor.
120
120
                /// </summary>
121
 
                public static void AddUserSchema(XmlSchemaCompletionData schemaData)
 
121
                public static void AddUserSchema (XmlSchemaCompletionData schemaData)
122
122
                {
123
123
                        if (UserSchemas [schemaData.NamespaceUri] == null) {
124
124