public IDocument Open(Uri uri, bool fromVPK, bool sourceTag = false) { CodeDocument doc = new CodeDocument(uri, fromVPK, sourceTag); if (fromVPK) { doc.FromVPK = true; doc.vpkService = m_editor.vpkService; } doc.Read(); m_editor.m_controlHostService.RegisterControl( doc.Control, doc.ControlInfo, m_editor); return(doc); }