wxTreeCtrl* tree = Manager::Get()->GetProjectManager()->GetTree(); FileTreeData* ftd = (FileTreeData*) tree->GetItemData(tree->GetSelection());
wxTreeCtrl* tree = Manager::Get()->GetProjectManager()->GetTree(); FileTreeData* ftd = (FileTreeData*) tree->GetItemData(tree->GetSelection());  if(!ftd) return wxEmptyString;
    wxString GetSelectionsProject()    {        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;                    return ftd->GetProject()->GetCommonTopLevelPath();    };