1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using ICSharpCode.Core;
7
using ICSharpCode.SharpDevelop.Editor;
9
namespace ICSharpCode.SharpDevelop
11
public static class LanguageBindingService
13
const string languageBindingPath = "/SharpDevelop/Workbench/LanguageBindings";
16
/// Creates the binding for the specified text editor. This method never returns null.
18
public static ILanguageBinding CreateBinding(ITextEditor editor)
20
var bindings = AddInTree.BuildItems<ILanguageBinding>(languageBindingPath, editor, false);
21
return new AggregatedLanguageBinding(bindings);