| 1030 | } |
| 1031 | |
| 1032 | QStringList DocumentController::activeDocumentPaths() const |
| 1033 | { |
| 1034 | UiController *uiController = Core::self()->uiControllerInternal(); |
| 1035 | if( !uiController->activeSublimeWindow() ) return QStringList(); |
| 1036 | |
| 1037 | QSet<QString> documents; |
| 1038 | const auto views = uiController->activeSublimeWindow()->area()->views(); |
| 1039 | for (Sublime::View* view : views) { |
| 1040 | documents.insert(view->document()->documentSpecifier()); |
| 1041 | } |
| 1042 | |
| 1043 | return documents.values(); |
| 1044 | } |
| 1045 | |
| 1046 | void DocumentController::registerDocumentForMimetype( const QString& mimetype, |
| 1047 | KDevelop::IDocumentFactory* factory ) |
nothing calls this directly
no test coverage detected