mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
26 lines
627 B
C#
26 lines
627 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using RainmeterStudio.Core;
|
|
using RainmeterStudio.Core.Documents;
|
|
using RainmeterStudio.Core.Model;
|
|
|
|
namespace RainmeterStudio.TextEditorPlugin
|
|
{
|
|
[PluginExport]
|
|
public class TextEditorFactory : IDocumentEditorFactory
|
|
{
|
|
public IDocumentEditor CreateEditor(IDocument document)
|
|
{
|
|
return new TextEditor((TextDocument)document);
|
|
}
|
|
|
|
public bool CanEdit(Type type)
|
|
{
|
|
return type.Equals(typeof(TextDocument));
|
|
}
|
|
}
|
|
}
|