FileTreeData* ftd = (FileTreeData*) tree->GetItemData(tree->GetSelection());  if(!ftd) return wxEmptyString;  if(ProjectFile *f = ftd->GetProject()->GetFile(ftd->GetFileIndex())) return f->file.GetFullPath(); else return ftd->GetProject()->GetCommonTopLevelPath();
if(ProjectFile *f = ftd->GetProject()->GetFile(ftd->GetFileIndex())) return f->file.GetFullPath(); else return ftd->GetProject()->GetCommonTopLevelPath();
    wxString GetSelection()    {        wxTreeCtrl* tree = Manager::Get()->GetProjectManager()->GetTree();                FileTreeData* ftd = (FileTreeData*) tree->GetItemData(tree->GetSelection());                if(!ftd) // please don't crash us if nothing is selected            return wxEmptyString;                    if(ProjectFile *f = ftd->GetProject()->GetFile(ftd->GetFileIndex()))            return f->file.GetFullPath();        else            return ftd->GetProject()->GetCommonTopLevelPath();    };