public void SetLocal (TextEditorData data)
{
if (info == null)
throw new InvalidOperationException ("Version control info must be set before attaching the merge view to an editor.");
dict[data.Document] = data;
var editor = info.Document.ParentDocument.Editor;
if (editor != null) {
data.Document.Text = editor.Text;
data.Document.ReadOnly = editor.IsReadOnly;
}
CreateDiff ();
data.Document.TextReplaced += HandleDataDocumentTextReplaced;
}