Exemple #1
0
 static SourceEditorDisplayBinding()
 {
     MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init();
     DefaultSourceEditorOptions.Init();
     SyntaxModeService.EnsureLoad();
     LoadCustomStylesAndModes();
 }
		public static void Init ()
		{
			if (inited)
				return;
			inited = true;
			
			TextStylePolicy policy = MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy<TextStylePolicy> ("text/plain");
			instance = new DefaultSourceEditorOptions (policy);
			MonoDevelop.Projects.Policies.PolicyService.DefaultPolicies.PolicyChanged += instance.HandlePolicyChanged;
		}
        public static void Init()
        {
            if (inited)
            {
                return;
            }
            inited = true;

            TextStylePolicy policy = MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy <TextStylePolicy> ("text/plain");

            instance = new DefaultSourceEditorOptions(policy);
            MonoDevelop.Projects.Policies.PolicyService.DefaultPolicies.PolicyChanged += instance.HandlePolicyChanged;
        }
        public static void InitSourceEditor()
        {
            if (IsInitialized)
            {
                return;
            }
            IsInitialized = true;

            MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init();
            DefaultSourceEditorOptions.Init();
            SyntaxModeService.EnsureLoad();
            LoadCustomStylesAndModes();
        }