MCPcopy Create free account
hub / github.com/KDE/kdevelop / closeAllOpenedFiles

Method closeAllOpenedFiles

kdevplatform/shell/projectcontroller.cpp:1010–1018  ·  view source on GitHub ↗

helper method for closeProject()

Source from the content-addressed store, hash-verified

1008
1009// helper method for closeProject()
1010void ProjectController::closeAllOpenedFiles(IProject* proj)
1011{
1012 const auto documents = Core::self()->documentController()->openDocuments();
1013 for (IDocument* doc : documents) {
1014 if (proj->inProject(IndexedString(doc->url()))) {
1015 doc->close();
1016 }
1017 }
1018}
1019
1020// helper method for closeProject()
1021void ProjectController::initializePluginCleanup(IProject* proj)

Callers

nothing calls this directly

Calls 6

openDocumentsMethod · 0.80
documentControllerMethod · 0.80
IndexedStringClass · 0.70
inProjectMethod · 0.45
urlMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected