Beispiel #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 ();
		}
Beispiel #3
0
        public static void InitSourceEditor()
        {
            if (IsInitialized)
            {
                return;
            }
            IsInitialized = true;

            // MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init ();
            DefaultSourceEditorOptions.Init();
            // SyntaxModeService.EnsureLoad ();
            LoadCustomStylesAndModes();
        }
Beispiel #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();
        }