/// <summary> /// Gets the absolute path of the file this object belongs to. /// </summary> public override string GetFilePath() { ProjectObject document; if (ObjectDatabase.TryGetObject(DocumentId, out document)) { return(document.GetFilePath()); } else { return(""); } }
public override string ToString() { ProjectObject scriptObject; if (ObjectDatabase.TryGetObject(m_scriptKey, out scriptObject) && !(scriptObject is NullObject)) { return(scriptObject.ToString()); } else { return(TypeName); } }