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

Method activeDocument

kdevplatform/shell/documentcontroller.cpp:985–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985IDocument* DocumentController::activeDocument() const
986{
987 UiController *uiController = Core::self()->uiControllerInternal();
988 Sublime::MainWindow* mw = uiController->activeSublimeWindow();
989 if( !mw || !mw->activeView() ) return nullptr;
990 return qobject_cast<IDocument*>(mw->activeView()->document());
991}
992
993KTextEditor::View* DocumentController::activeTextDocumentView() const
994{

Callers 15

markChangedMethod · 0.80
ProblemModelMethod · 0.80
beautifySourceMethod · 0.80
beautifyLineMethod · 0.80
openProjectForUrlSlotMethod · 0.80
commitCurrentProjectMethod · 0.80
toggleBreakpointMethod · 0.80
showOpenFileMethod · 0.80
openDocumentInternalMethod · 0.80
initMethod · 0.80

Calls 4

uiControllerInternalMethod · 0.80
activeSublimeWindowMethod · 0.80
activeViewMethod · 0.45
documentMethod · 0.45

Tested by 6

initMethod · 0.64
runClangTidyMethod · 0.64
contextMenuExtensionMethod · 0.64
runClangTidyMethod · 0.64
contextMenuExtensionMethod · 0.64