[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/language/duchain
From: Hamish Rodda <rodda () kde ! org>
Date: 2009-04-25 7:55:48
Message-ID: 1240646148.911690.18178.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 958944 by rodda:
Re-add document to background parser when the url changes, so the new url is tracked \
(should probably remove the old one too...)
BUG:183651
M +9 -0 duchain.cpp
M +1 -0 duchain.h
--- trunk/KDE/kdevplatform/language/duchain/duchain.cpp #958943:958944
@@ -868,6 +868,7 @@
if(ICore::self()) {
Q_ASSERT(ICore::self()->documentController());
connect(ICore::self()->documentController(), \
SIGNAL(documentLoadedPrepare(KDevelop::IDocument*)), this, \
SLOT(documentLoadedPrepare(KDevelop::IDocument*))); + \
connect(ICore::self()->documentController(), \
SIGNAL(documentUrlChanged(KDevelop::IDocument*)), this, \
SLOT(documentRenamed(KDevelop::IDocument*)));
connect(ICore::self()->documentController(), \
SIGNAL(documentActivated(KDevelop::IDocument*)), this, \
SLOT(documentActivated(KDevelop::IDocument*))); }
}
@@ -1305,6 +1306,14 @@
}
}
+void DUChain::documentRenamed(KDevelop::IDocument* doc)
+{
+ if(sdDUChainPrivate->m_destroyed)
+ return;
+
+ ICore::self()->languageController()->backgroundParser()->addDocument(doc->url(), \
(TopDUContext::Features)(TopDUContext::AllDeclarationsContextsAndUses | \
TopDUContext::ForceUpdate)); +}
+
Uses* DUChain::uses()
{
return &sdDUChainPrivate->m_uses;
--- trunk/KDE/kdevplatform/language/duchain/duchain.h #958943:958944
@@ -231,6 +231,7 @@
void documentAboutToBeDeleted(KTextEditor::Document* doc);
void documentAboutToBeDeletedFinal(KTextEditor::Document* doc);
void documentLoadedPrepare(KDevelop::IDocument* document);
+ void documentRenamed(KDevelop::IDocument* document);
void aboutToQuit();
private:
/// Increases the reference-count for the given top-context. The result: It will \
not be unloaded.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic