#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
951 B

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
using System;
using ICSharpCode.AvalonEdit.AddIn.Options;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
namespace ICSharpCode.AvalonEdit.AddIn
{
/// <summary>
/// Implementation of IEditorControlService, allows other addins to create editors or access the options without
/// requiring a reference to AvalonEdit.AddIn.
/// </summary>
public class AvalonEditorControlService : IEditorControlService
{
public ITextEditorOptions GlobalOptions {
get { return CodeEditorOptions.Instance; }
}
public ITextEditor CreateEditor(out object control)
{
SharpDevelopTextEditor editor = new SharpDevelopTextEditor();
control = editor;
return new CodeCompletionEditorAdapter(editor);
}
}
}