MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getTextDocumentRef

Method getTextDocumentRef

src/eepp/ui/tools/uicodeeditorsplitter.cpp:1896–1903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894}
1895
1896std::shared_ptr<TextDocument> UICodeEditorSplitter::getTextDocumentRef( TextDocument* doc ) {
1897 std::shared_ptr<TextDocument> ret;
1898 forEachEditor( [doc, &ret]( UICodeEditor* editor ) {
1899 if ( editor->getDocumentRef().get() == doc )
1900 ret = editor->getDocumentRef();
1901 } );
1902 return ret;
1903}
1904
1905void UICodeEditorSplitter::setTabTryCloseCallback( TabTryCloseCallback cb ) {
1906 mTabTryCloseCb = cb;

Callers 2

onCodeEditorCreatedMethod · 0.80
getDocumentSymbolsMethod · 0.80

Calls 2

getDocumentRefMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected