return location;
}
+ char * CopyUserLocationString()
+ {
+ char * location;
+ char * loc = CopyLocationString(false);
+ Project prj = null;
+ for(p : ide.workspace.projects)
+ {
+ if(p.topNode.FindByFullPath(absoluteFilePath, false))
+ {
+ prj = p;
+ break;
+ }
+ }
+ if(prj)
+ {
+ location = PrintString("(", prj.name, ")", loc);
+ delete loc;
+ }
+ else
+ location = loc;
+ return location;
+ }
+
void Save(File f)
{
if(relativeFilePath && relativeFilePath[0])
if(projectView && fileName)
{
int line = editBox.lineNumber + 1;
- char name[MAX_LOCATION];
Project prj = null;
- // TOFIX: This only looks at the filename...
- GetLastDirectory(fileName, name);
if(ide && ide.workspace)
{
for(p : ide.workspace.projects)
{
- if(p.topNode.Find(name, false))
+ if(p.topNode.FindByFullPath(fileName, false))
{
prj = p;
break;
char string[32];
char * location;
Breakpoint bp = (Breakpoint)row.tag;
- location = bp.CopyLocationString(false);
+ location = bp.CopyUserLocationString();
#if defined(__WIN32__)
ChangeCh(location, '/', '\\');
#endif
Breakpoint bp = (Breakpoint)row.tag;
if(bp)
{
- char * currentLoc = bp.CopyLocationString(false);
+ char * currentLoc = bp.CopyUserLocationString();
if(strcmp(location, currentLoc))
{
// todo, parse location