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

Method activeDocumentPaths

kdevplatform/shell/documentcontroller.cpp:1032–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032QStringList 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
1046void DocumentController::registerDocumentForMimetype( const QString& mimetype,
1047 KDevelop::IDocumentFactory* factory )

Callers

nothing calls this directly

Calls 8

QStringListClass · 0.85
uiControllerInternalMethod · 0.80
activeSublimeWindowMethod · 0.80
viewsMethod · 0.45
areaMethod · 0.45
insertMethod · 0.45
documentSpecifierMethod · 0.45
documentMethod · 0.45

Tested by

no test coverage detected