public DocumentBase(IDocumentRef docRef) : this() { _docRef = docRef; this.FileName = docRef.FileName; this.ParentDocument = docRef.ParentDocument; }
private ILuaEditDocument CreateDocumentByDocumentRef(IDocumentRef docRef) { DocumentTypeDescriptor type = _registeredDocumentTypesByExt[Path.GetExtension(docRef.FileName)]; if (type != null) { return(Activator.CreateInstance(type.DocumentType, new object[] { docRef }) as ILuaEditDocument); } return(null); }
public LuaProjectDocument(IDocumentRef docRef) : base(docRef) { Initialize(); }
public TextDocument(IDocumentRef docRef) : base(docRef) { }
/// <summary> /// Create a new Document using the specified file name. /// </summary> /// <param name="docRef">The file name to the file to use during creation</param> /// <returns>A new instance of SyntaxDocument</returns> public ILuaEditDocument CreateDocument(IDocumentRef docRef) { return(CreateDocumentByDocumentRef(docRef)); }
/// <summary> /// Return true if the specified extension is supported. Otherwise false. /// </summary> /// <param name="docRef">The document ref on which to perform the test</param> /// <returns>True if the specified document ref is supported. Otherwise false.</returns> public bool IsDocumentSupported(IDocumentRef docRef) { return(IsDocumentSupported(Path.GetExtension(docRef.FileName))); }
public LuaSolutionDocument(IDocumentRef docRef) : base(docRef) { }
public DocumentGroupBase(IDocumentRef docRef) : base(docRef) { Initialize(); }
public EditableDocumentBase(IDocumentRef docRef) : base(docRef) { Initialize(); }
public LuaScriptDocument(IDocumentRef docRef) : base(docRef) { }