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
602 B
32 lines
602 B
|
|
using ICSharpCode.Core; |
|
using ICSharpCode.SharpDevelop.Gui; |
|
using System; |
|
|
|
namespace AlternateEditor |
|
{ |
|
public class AlternateEditorDisplayBinding : IDisplayBinding |
|
{ |
|
public bool CanCreateContentForFile(string fileName) |
|
{ |
|
return true; |
|
} |
|
|
|
public bool CanCreateContentForLanguage(string language) |
|
{ |
|
return true; |
|
} |
|
|
|
public IViewContent CreateContentForFile(string fileName) |
|
{ |
|
Editor editor = new Editor(); |
|
editor.Load(fileName); |
|
return editor; |
|
} |
|
|
|
public IViewContent CreateContentForLanguage(string language, string content) |
|
{ |
|
return new Editor(); |
|
} |
|
} |
|
}
|
|
|