public Topic(ITopicNode parent, ITopicFile file) : base(Path.GetFileNameWithoutExtension(file.FilePath)) { if (parent == null) { throw new ArgumentNullException("parent"); } Project = parent.Project; File = file; IsIndex = Name.EqualsIgnoreCase(Index); if (IsIndex) { Key = parent.Url; OrderString = file.RelativeFile.IsEmpty() ? string.Empty : file.RelativeFile.ParentUrl(); } else { Key = parent.Url.AppendUrl(Name); } OrderString = OrderString.Replace(".spark", ""); TopicBuilder.BuildOut(this); }
public TopicStub(string remote, ITopicNode core) { Remote = remote; Core = core; }