| 923 | } |
| 924 | |
| 925 | void DocumentController::reloadAllDocuments() |
| 926 | { |
| 927 | if (Sublime::MainWindow* mw = Core::self()->uiControllerInternal()->activeSublimeWindow()) { |
| 928 | const QList<IDocument*> views = visibleDocumentsInWindow(qobject_cast<KDevelop::MainWindow*>(mw)); |
| 929 | |
| 930 | if (!saveSomeDocuments(views, SaveSelectionMode::LetUserSelect)) |
| 931 | // User cancelled or other error |
| 932 | return; |
| 933 | |
| 934 | for (IDocument* doc : views) { |
| 935 | if(!isEmptyDocumentUrl(doc->url())) |
| 936 | doc->reload(); |
| 937 | } |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | bool DocumentController::closeAllDocuments() |
| 942 | { |
nothing calls this directly
no test coverage detected