Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Question about source lookup

Hi,

In the context of linux tools project (http://www.eclipse.org/linuxtools/), I've made my own CSourceNotFoundEditor (https://dev.eclipse.org/svnroot/technology/org.eclipse.linuxtools/gprof/trunk/org.eclipse.linuxtools.binutils/src/org/eclipse/linuxtools/binutils/link2source/STCSourceNotFoundEditor.java)

I've made that, because when viewing gprof profiling result, there is no debugger active (so I can't use CSourceNotFoundEditor). I've added a "Locate File..." button, allowing the user to choose a C file in the filesystem. Moreover, this button adds a new MapEntrySourceContainer in sourceLookupDirector.

It works fine, but unfortunately, MapEntrySourceContainer is an internal class. Therefore, a warning is issued at compile time (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=285328)

So, my question is the following:
=> Is there a way to implement this feature another way, to avoid such warnings ? => If not, is it possible to add a public API in CDT, to allow access to MapEntrySourceContainer ?

Many thanks

Xavier Raynaud






Back to the top