<div class="gmail_quote">On Fri, Sep 30, 2011 at 1:04 AM, Alexandre Courbot <span dir="ltr"><<a href="mailto:gnurou@gmail.com">gnurou@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">> > I know how to add it as well as the necessary widgets, and how to query it<br>
> > using KSharedConfig. The problem is that in order to obtain the<br>
> > KSharedConfig for the project, I need to pointer to the project itself -<br>
> > and this seems to be hard to obtain from the C parser. IncludePathResolver<br>
> > has no such link, neither do IncludePathComputer, which makes sense at<br>
> > that level. Higher we have CppLanguageSupport and CppParseJob, but there<br>
> > also I failed to find a chain up to the project. I would like to avoid<br>
> > having to go way up and to pass a parameter down to IncludePathResolver,<br>
> > did I miss a link to the current project somewhere, or is there a way to<br>
> > obtain it from inside the parser?<br>
><br>
> Get it via the project controller, i.e. findProjectForUrl() should do fine -<br>
> or?<br>
<br>
</div>Looks good, and I could use that if nothing better comes to mind, but<br>
what if the same URL points to a file that belongs to several opened<br>
projects? Granted, there is little chances for that to happen, but<br>
just in case there is another way to get the project for which the<br>
parse job has been triggered.<br>
<div><div></div><div class="h5"><br>
Alex.<br>
<br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>Hi,</div><div>You can ask the project controller for all projects instances and then ask all of them if the project contains the file with IProject::inProject.</div><div><br></div>

<div>Aleix</div>