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

Method documentForUrl

kdevplatform/shell/documentcontroller.cpp:778–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778IDocument * DocumentController::documentForUrl( const QUrl & dirtyUrl ) const
779{
780 Q_D(const DocumentController);
781
782 if (dirtyUrl.isEmpty()) {
783 return nullptr;
784 }
785 Q_ASSERT(!dirtyUrl.isRelative());
786 Q_ASSERT(!dirtyUrl.fileName().isEmpty() || !dirtyUrl.isLocalFile());
787 //Fix urls that might not be normalized
788 return d->documents.value( dirtyUrl.adjusted( QUrl::NormalizePathSegments ), nullptr );
789}
790
791QList<IDocument*> DocumentController::openDocuments() const
792{

Callers 15

toggleBreakpointMethod · 0.80
updateMovingCursorMethod · 0.80
formatFileMethod · 0.80
iDocumentFromKteDocumentFunction · 0.80
findUrlMethod · 0.80
initMethod · 0.80
loadToAreaPrivateFunction · 0.80
renameUrlMethod · 0.80
shouldRespectFileMethod · 0.80
createCodeRepresentationFunction · 0.80
executeMethod · 0.80

Calls 4

isLocalFileMethod · 0.80
isEmptyMethod · 0.45
fileNameMethod · 0.45
valueMethod · 0.45

Tested by 9

initMethod · 0.64
~TestFileMethod · 0.64
textForDocumentFunction · 0.64
operator()Method · 0.64
~TestbedMethod · 0.64
changeDocumentMethod · 0.64
documentMethod · 0.64
openDocumentMethod · 0.64