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

Method jumpToSpecialObject

plugins/quickopen/quickopenplugin.cpp:659–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659bool QuickOpenPlugin::jumpToSpecialObject()
660{
661 QPair<QUrl, KTextEditor::Cursor> pos = specialObjectJumpPosition();
662 if (pos.second.isValid()) {
663 if (pos.first.isEmpty()) {
664 qCDebug(PLUGIN_QUICKOPEN) << "Got empty url for special language object";
665 return false;
666 }
667
668 ICore::self()->documentController()->openDocument(pos.first, pos.second);
669 return true;
670 }
671 return false;
672}
673
674void QuickOpenPlugin::quickOpenDefinition()
675{

Callers

nothing calls this directly

Calls 4

documentControllerMethod · 0.80
isValidMethod · 0.45
isEmptyMethod · 0.45
openDocumentMethod · 0.45

Tested by

no test coverage detected