GetSyntaxModes() public static method

public static GetSyntaxModes ( Stream xmlSyntaxModeStream ) : List
xmlSyntaxModeStream Stream
return List
Exemplo n.º 1
0
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("SyntaxModes.xml");

            if (syntaxModeStream == null)
            {
                throw new ApplicationException();
            }
            syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
        }
Exemplo n.º 2
0
        public ResourceSyntaxModeProvider()
        {
            Stream manifestResourceStream = typeof(SyntaxMode).Assembly.GetManifestResourceStream("BigBug.ICSharpCode.TextEditor.xshd.SyntaxModes.xml");

            if (manifestResourceStream == null)
            {
                this.syntaxModes = new List <SyntaxMode>();
                return;
            }
            this.syntaxModes = SyntaxMode.GetSyntaxModes(manifestResourceStream);
        }
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("Coding4Fun.WinFormUI.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new List <SyntaxMode>();
            }
        }
Exemplo n.º 4
0
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("Taos.Studio.ICSharpCode.TextEditor.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new List <SyntaxMode>();
            }
        }
Exemplo n.º 5
0
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("WisoftUpdateTool.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new List <SyntaxMode>();
            }
        }
Exemplo n.º 6
0
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("FluentSharp.SharpDevelopEditor._O2SharpDevelop.ICSharpCode.TextEditor.Project.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new List <SyntaxMode>();
            }
        }
Exemplo n.º 7
0
        public ResourceSyntaxModeProvider()
        {
            Assembly assembly         = typeof(SyntaxMode).Assembly;
            Stream   syntaxModeStream = assembly.GetManifestResourceStream("MDT.ThirdParty.Controls.TextEditor.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new ArrayList();
            }
        }
Exemplo n.º 8
0
        public void UpdateSyntaxModeList()
        {
            string str = Path.Combine(this.directory, "SyntaxModes.xml");

            if (!File.Exists(str))
            {
                this.syntaxModes = this.ScanDirectory(this.directory);
                return;
            }
            Stream stream = File.OpenRead(str);

            this.syntaxModes = SyntaxMode.GetSyntaxModes(stream);
            stream.Close();
        }
Exemplo n.º 9
0
        public void UpdateSyntaxModeList()
        {
            string syntaxModeFile = Path.Combine(directory, "SyntaxModes.xml");

            if (File.Exists(syntaxModeFile))
            {
                Stream s = File.OpenRead(syntaxModeFile);
                syntaxModes = SyntaxMode.GetSyntaxModes(s);
                s.Close();
            }
            else
            {
                syntaxModes = ScanDirectory(directory);
            }
        }
Exemplo n.º 10
0
        public FileSyntaxModeProvider(string directory)
        {
            this.directory = directory;
            string syntaxModeFile = Path.Combine(directory, "SyntaxModes.xml");

            if (File.Exists(syntaxModeFile))
            {
                Stream s = File.OpenRead(syntaxModeFile);
                syntaxModes = SyntaxMode.GetSyntaxModes(s);
                s.Close();
            }
            else
            {
                syntaxModes = ScanDirectory(directory);
            }
        }
Exemplo n.º 11
0
        public void UpdateSyntaxModeList()
        {
            var syntaxModeFile = Path.Combine(directory, "SyntaxModes.xml");

            if (File.Exists(syntaxModeFile))
            {
                using (var s = File.OpenRead(syntaxModeFile))
                {
                    syntaxModes = SyntaxMode.GetSyntaxModes(s);
                }
            }
            else
            {
                syntaxModes = ScanDirectory(directory);
            }
        }
Exemplo n.º 12
0
        public ResourceSyntaxModeProvider()
        {
            String   projectName = Assembly.GetExecutingAssembly().GetName().Name.ToString();
            Assembly assembly    = typeof(SyntaxMode).Assembly;
            // SyntaxModes.xml 文件右键属性-》资源文件,否则找不到,一直为 null.
            Stream syntaxModeStream = assembly.GetManifestResourceStream("Common.Controls.custom.ICSharpCode.Resources.SyntaxModes.xml");

            if (syntaxModeStream != null)
            {
                syntaxModes = SyntaxMode.GetSyntaxModes(syntaxModeStream);
            }
            else
            {
                syntaxModes = new ArrayList();
            }
        }