Main R editor command controller
Inheritance: Microsoft.Languages.Editor.Controller.ViewController
Esempio n. 1
0
        public static MdMainController Attach(ITextView textView, ITextBuffer textBuffer) {
            MdMainController controller = FromTextView(textView);
            if (controller == null) {
                controller = new MdMainController(textView, textBuffer);
            }

            return controller;
        }
Esempio n. 2
0
        public static MdMainController Attach(ITextView textView, ITextBuffer textBuffer, ICoreShell coreShell)
        {
            MdMainController controller = FromTextView(textView);

            if (controller == null)
            {
                controller = new MdMainController(textView, textBuffer, coreShell);
            }

            return(controller);
        }
Esempio n. 3
0
 protected override void OnTextViewConnected(ITextView textView, ITextBuffer textBuffer)
 {
     MdMainController.Attach(textView, textBuffer);
     base.OnTextViewConnected(textView, textBuffer);
 }