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

Method activateView

kdevplatform/shell/ktexteditorpluginintegration.cpp:576–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576KTextEditor::View* MainWindow::activateView(KTextEditor::Document* document)
577{
578 if (auto* const iDocument = iDocumentFromKteDocument(document)) {
579 Core::self()->documentControllerInternal()->activateDocument(iDocument);
580 auto* const view = activeView();
581 if (view && view->document() == document) {
582 return view;
583 }
584 qCWarning(SHELL) << "activating a document" << document << "failed, active view:" << view;
585 return nullptr;
586 }
587 qCWarning(SHELL) << "ignoring request to activate a document not registered with the document controller"
588 << document;
589 return nullptr;
590}
591
592bool MainWindow::closeView(KTextEditor::View *kteView)
593{

Callers 13

gotoPrevNextWindowFunction · 0.45
splitMethod · 0.45
gotoPrevNextSplitFunction · 0.45
contextMenuFileNewMethod · 0.45
openDocumentInternalMethod · 0.45
testDisableBuddiesMethod · 0.45
testDisableAllMethod · 0.45
testsplitViewBuddiesMethod · 0.45
labelClickedMethod · 0.45

Calls 4

iDocumentFromKteDocumentFunction · 0.85
activateDocumentMethod · 0.80
documentMethod · 0.45

Tested by 3

testDisableBuddiesMethod · 0.36
testDisableAllMethod · 0.36
testsplitViewBuddiesMethod · 0.36