Ejemplo n.º 1
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);
			}
		}
Ejemplo n.º 2
0
 public virtual object LoadConfiguration(string[] files)
 {
     Scintilla configFile = new Scintilla();
     List<include> includes = new List<include>();
     for (Int32 i = 0; i < files.Length; i++)
     {
         include inc = new include();
         inc.file = files[i];
         includes.Add(inc);
     }
     configFile.includes = includes.ToArray();
     configFile.init(this, null);
     return configFile;
 }
Ejemplo n.º 3
0
 internal ConfigurationManager(Scintilla scintilla)
     : base(scintilla)
 {
 }