Example #1
0
 public DocumentBase(IDocumentRef docRef) :
     this()
 {
     _docRef             = docRef;
     this.FileName       = docRef.FileName;
     this.ParentDocument = docRef.ParentDocument;
 }
Example #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);
        }
 public LuaProjectDocument(IDocumentRef docRef) :
     base(docRef)
 {
     Initialize();
 }
Example #4
0
 public TextDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }
Example #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));
 }
Example #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)));
 }
 public LuaSolutionDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }
Example #8
0
 public DocumentGroupBase(IDocumentRef docRef) :
     base(docRef)
 {
     Initialize();
 }
Example #9
0
 public EditableDocumentBase(IDocumentRef docRef)
     : base(docRef)
 {
     Initialize();
 }
Example #10
0
 public LuaScriptDocument(IDocumentRef docRef)
     : base(docRef)
 {
 }