public override bool Equals(object obj)
        {
            if (!(obj is IIncludeFile))
            {
                return(base.Equals(obj));
            }
            IIncludeFile newInclude = (IIncludeFile)obj;

            return(newInclude.Parent.Equals(Parent) && newInclude.Name == Name);
        }
Example #2
0
        protected override void Execute()
        {
            ParserInformation info         = _parserData.Parent;
            FilePath          file         = info.SourceFile;
            IIncludeFile      includedFile = _parserData as IIncludeFile;

            if (includedFile != null)
            {
                string   path     = Path.Combine(_projectService.Project.ProjectDirectory, includedFile.IncludedFile);
                FilePath filePath = new FilePath(path);
                RunCommand(new OpenFileAction(filePath));
            }
            else
            {
                RunCommand(new GotoLineAction(file, _parserData.Location.Line));
            }
        }