Esempio n. 1
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (usekeywords == null)
     {
         usekeywords = new UseKeyword[0];
     }
     if (usestyles == null)
     {
         usestyles = new UseStyle[0];
     }
     for (int j = 0; j < usekeywords.Length; j++)
     {
         usekeywords[j].init(utility, _parent);
     }
     for (int i = 0; i < usestyles.Length; i++)
     {
         usestyles[i].language = this;
         usestyles[i].init(utility, _parent);
     }
     if (lexer != null)
     {
         lexer.init(utility, _parent);
     }
     if (characterclass == null)
     {
         characterclass = new CharacterClass();
     }
     characterclass.init(utility, _parent);
     if (editorstyle != null)
     {
         editorstyle.init(utility, _parent);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Loads the syntax and refreshes scintilla settings.
 /// </summary>
 public static void LoadConfiguration()
 {
     SciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly());
     SciConfig = (Scintilla)SciConfigUtil.LoadConfiguration(typeof(Scintilla), FileNameHelper.Scintilla);
     ScintillaControl.Configuration = SciConfig;
     MainForm.Instance.ApplyAllSettings();
 }
Esempio n. 3
0
 /// <summary>
 /// Loads the syntax and refreshes scintilla settings.
 /// </summary>
 public static void LoadConfiguration()
 {
     sciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly());
     String[] configFiles = Directory.GetFiles(Path.Combine(PathHelper.SettingDir, "Languages"), "*.xml");
     sciConfig = (Scintilla)sciConfigUtil.LoadConfiguration(configFiles);
     ScintillaControl.Configuration = sciConfig;
     if (ConfigurationLoaded != null) ConfigurationLoaded();
 }
 /// <summary>
 /// Loads the syntax and refreshes scintilla settings.
 /// </summary>
 public static void LoadConfiguration()
 {
     SciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly());
     String[] configFiles = Directory.GetFiles(Path.Combine(PathHelper.SettingDir, "Languages"), "*.xml");
     SciConfig = (Scintilla)SciConfigUtil.LoadConfiguration(configFiles);
     ScintillaControl.Configuration = SciConfig;
     MainForm.Instance.ApplyAllSettings();
 }
Esempio n. 5
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (!string.IsNullOrEmpty(cls))
     {
         inheritstyle = cls;
     }
 }
Esempio n. 6
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (cls != null && cls.Length > 0)
     {
         inheritstyle = cls;
     }
 }
Esempio n. 7
0
 public virtual void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     if (theParent == null)
     {
         _parent = (ConfigFile)this;
     }
     else
     {
         _parent = theParent;
     }
 }
Esempio n. 8
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     ConfigFile configFile = null;
     includedFiles = new ConfigFile[0];
     base.init(utility, theParent);
     if (includes == null) includes = new include[0];
     for (int j = 0; j<includes.Length; j++) includes[j].init(utility, _parent);
     for (int i = 0; i<includes.Length; i++)
     {
         configFile = (ConfigFile)utility.LoadConfiguration(base.GetType(), includes[i].file, (ConfigFile)_parent);
         addIncludedFile(configFile);
     }
     CollectScintillaNodes(null);
 }
Esempio n. 9
0
        public override void init(ConfigurationUtility utility, ConfigFile theParent)
        {
            base.init(utility, theParent);
            if (usekeywords == null) usekeywords = new UseKeyword[0];
            if (usestyles == null) usestyles = new UseStyle[0];
            for (int j = 0; j<usekeywords.Length; j++)
            {
                usekeywords[j].init(utility, _parent);
            }
            for (int i = 0; i<usestyles.Length; i++)
            {
                usestyles[i].init(utility, _parent);
            }
            if (lexer != null) lexer.init(utility, _parent);
			if (characterclass != null) characterclass.init(utility, _parent);
			if (editorstyle != null) editorstyle.init(utility, _parent);
        }
Esempio n. 10
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (languages == null)
     {
         languages = new Language[0];
     }
     if (styleclasses == null)
     {
         styleclasses = new StyleClass[0];
     }
     if (keywordclass == null)
     {
         keywordclass = new KeywordClass[0];
     }
     if (globals == null)
     {
         globals = new Value[0];
     }
     for (int i2 = 0; i2 < languages.Length; i2++)
     {
         languages[i2].init(utility, _parent);
     }
     for (int k = 0; k < styleclasses.Length; k++)
     {
         styleclasses[k].init(utility, _parent);
     }
     for (int j = 0; j < keywordclass.Length; j++)
     {
         keywordclass[j].init(utility, _parent);
     }
     for (int i1 = 0; i1 < globals.Length; i1++)
     {
         globals[i1].init(utility, _parent);
     }
     if (characterclasses == null)
     {
         characterclasses = new CharacterClass[0];
     }
     for (int k = 0; k < characterclasses.Length; k++)
     {
         characterclasses[k].init(utility, _parent);
     }
 }
Esempio n. 11
0
        public override void init(ConfigurationUtility utility, ConfigFile theParent)
        {
            ConfigFile configFile = null;

            includedFiles = new ConfigFile[0];
            base.init(utility, theParent);
            if (includes == null)
            {
                includes = new include[0];
            }
            for (int j = 0; j < includes.Length; j++)
            {
                includes[j].init(utility, _parent);
            }
            for (int i = 0; i < includes.Length; i++)
            {
                configFile = (ConfigFile)utility.LoadConfiguration(base.GetType(), includes[i].file, _parent);
                addIncludedFile(configFile);
            }
            CollectScintillaNodes(null);
        }
Esempio n. 12
0
		/**
		* Loads all settings of the FlashDevelop
		*/
		private void LoadAllSettings()
		{
			try 
			{
				this.snippets = new SettingParser(FilePaths.Snippets);
				this.settings = new SettingParser(FilePaths.Settings);
				this.documents = new SettingParser(FilePaths.Documents);
				this.SciConfigUtil = new ScintillaNet.Configuration.ConfigurationUtility(GetType().Module.Assembly);
				this.SciConfig = (ScintillaNet.Configuration.Scintilla)this.SciConfigUtil.LoadConfiguration(typeof(ScintillaNet.Configuration.Scintilla), FilePaths.Scintilla);
				ScintillaControl.Configuration = this.SciConfig;
				this.initializer = new SettingInitializer(this.settings);
				this.snippets.SortByKey();
			}
			catch (Exception ex)
			{
				ErrorHandler.ShowError("Error while loading settings", ex);
			}
		}
Esempio n. 13
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (languages == null) languages = new Language[0];
     if (styleclasses == null)  styleclasses = new StyleClass[0];
     if (keywordclass == null) keywordclass = new KeywordClass[0];
     if (globals == null) globals = new Value[0];
     for (int i2 = 0; i2<languages.Length; i2++)
     {
         languages[i2].init(utility, _parent);
     }
     for (int k = 0; k<styleclasses.Length; k++)
     {
         styleclasses[k].init(utility, _parent);
     }
     for (int j = 0; j<keywordclass.Length; j++)
     {
         keywordclass[j].init(utility, _parent);
     }
     for (int i1 = 0; i1<globals.Length; i1++)
     {
         globals[i1].init(utility, _parent);
     }
     if (characterclasses == null) characterclasses = new CharacterClass[0];
     for (int k = 0; k<characterclasses.Length; k++)
     {
         characterclasses[k].init(utility, _parent);
     }
 }
Esempio n. 14
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (!string.IsNullOrEmpty(cls)) inheritstyle = cls;
 }
Esempio n. 15
0
 public override void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     base.init(utility, theParent);
     if (cls != null && cls.Length > 0) inheritstyle = cls;
 }
Esempio n. 16
0
 public virtual void init(ConfigurationUtility utility, ConfigFile theParent)
 {
     if (theParent == null) _parent = (ConfigFile)this;
     else _parent = theParent;
 }