Ejemplo n.º 1
0
 protected override void OnGrabFocus(DocumentView view)
 {
     textEditor.GrabFocus();
     try {
         DefaultSourceEditorOptions.SetUseAsyncCompletion(false);
     } catch (Exception e) {
         LoggingService.LogInternalError("Error while setting up async completion.", e);
     }
 }
		public static void Init ()
		{
			if (inited)
				return;
			inited = true;

			var policy = MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy<TextStylePolicy> ("text/plain");
			instance = new DefaultSourceEditorOptions (policy);
			MonoDevelop.Projects.Policies.PolicyService.DefaultPolicies.PolicyChanged += instance.HandlePolicyChanged;

			PlainEditor = new PlainEditorOptions ();
		}
Ejemplo n.º 3
0
        public static void InitSourceEditor()
        {
            if (IsInitialized)
            {
                return;
            }
            IsInitialized = true;

            // MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init ();
            DefaultSourceEditorOptions.Init();
            // SyntaxModeService.EnsureLoad ();
            LoadCustomStylesAndModes();
        }
Ejemplo n.º 4
0
        public static void Init()
        {
            if (inited)
            {
                return;
            }
            inited = true;

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

            instance = new DefaultSourceEditorOptions(policy);
            MonoDevelop.Projects.Policies.PolicyService.DefaultPolicies.PolicyChanged += instance.HandlePolicyChanged;

            PlainEditor = new PlainEditorOptions();
        }