void CodeRefactoring::RenameSymbols() { const wxString targetText = GetSymbolUnderCursor(); if (targetText.IsEmpty()) return; wxString replaceText = wxGetTextFromUser(_("Rename symbols under cursor"), _("Code Refactoring"), targetText, Manager::Get()->GetAppWindow()); if (!replaceText.IsEmpty() && replaceText != targetText && Parse()) { DoRenameSymbols(targetText, replaceText); DoFindReferences(); } }
void RefactoringEngine::RenameGlobalSymbol(const wxString& symname, const wxFileName& fn, int line, int pos, const wxFileList_t& files) { DoFindReferences(symname, fn, line, pos, files, false); }
void RefactoringEngine::FindReferences(const wxString& symname, const wxFileName& fn, int line, int pos, const wxFileList_t& files) { DoFindReferences(symname, fn, line, pos, files, true); }
void CodeRefactoring::FindReferences() { if (Parse()) DoFindReferences(); }