Example #1
0
        internal void FileNameChanged()
        {
            if (languageBinding != null)
            {
                languageBinding.Detach();
            }

            languageBinding = LanguageBindingService.CreateBinding(this);             // never returns null
            languageBinding.Attach(this);

            // update properties set by languageBinding
            this.TextEditor.TextArea.IndentationStrategy = new OptionControlledIndentationStrategy(this, languageBinding.FormattingStrategy);
        }