Пример #1
0
 public DocumentBase(IDocumentRef docRef) :
     this()
 {
     _docRef             = docRef;
     this.FileName       = docRef.FileName;
     this.ParentDocument = docRef.ParentDocument;
 }
Пример #2
0
        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);
        }
Пример #3
0
 public LuaProjectDocument(IDocumentRef docRef) :
     base(docRef)
 {
     Initialize();
 }
Пример #4
0
 public TextDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }
Пример #5
0
 /// <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));
 }
Пример #6
0
 /// <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)));
 }
Пример #7
0
 public LuaSolutionDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }
Пример #8
0
 public DocumentGroupBase(IDocumentRef docRef) :
     base(docRef)
 {
     Initialize();
 }
Пример #9
0
 public EditableDocumentBase(IDocumentRef docRef)
     : base(docRef)
 {
     Initialize();
 }
Пример #10
0
 public LuaScriptDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }