[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-debug-dev] Zylin Embedded CDT plugin duplicate source files problems
|
I would greatly appreciate a bit of assistance(as I've been out of town
lately), with a problem I'm having.
I've finally gotten around to removing some more kludges to CDT by
creating a CygWin/MinGWSourceLookupDirector(and a dozen other related
classes + entries in xml files).
My theory is that the problem is that sometimes a source file that
exists within a CDT Project has an absolute CygWin/MinGW path and my
CygWinSourceContainer class will therefore unecessarily return a
translated path from findSourceElements().
I basically only want to return a non-empty list in the case where my
CygWinSourceContainer sees an absolute CygWin path and no other source
containers have found anything.
public Object[] findSourceElements( String name ) throws CoreException
{
ArrayList sources = new ArrayList();
/* FIX!!! how do I skip this when there is some other source container
that found
* the source file?
*/
if (true)
{
IPath file=getCompilationPath(name);
if (file!=null)
{
/* "name" was: a) a CygWin path b) the file exists on this machine */
sources.add( new LocalFileStorage( file.toFile() ) );
}
}
return sources.toArray();
}
--
Øyvind Harboe
http://www.zylin.com