1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00
cdt/qt
Andrew Eidsness 25a0992a63 Bug 425787: Reindex projects when Qt nature is added
If a project description is changed to add the Qt nature then the PDOM
needs to be rebuilt.

Since index rebuilds are potentially expensive, this first checks to
make sure the PDOM does not already contain the QtLinkage.  If the
linkage already exists, then it will be updated by the normal triggers.

The reindex operation should only be needed to add the linkage the first
time the nature is added.

This does not trigger a reindex if the nature is removed.  Without the
nature, the extra linkage will be safely ignored.  The C++ linkage is
(proportionally) much larger than the Qt linkage, so it doesn't make
sense to spend significant time rebuilding the index just for the small
space savings.

Change-Id: I263b05e4de407775979843f5d6a9c8c172948d72
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20680
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-20 12:11:46 -05:00
..
org.eclipse.cdt.qt-feature Fix version number in qt-feature 2014-01-02 14:29:50 -05:00
org.eclipse.cdt.qt.core Bug 425787: Reindex projects when Qt nature is added 2014-01-20 12:11:46 -05:00
org.eclipse.cdt.qt.tests Bug 422841 QtIndex accessor for QmlRegistrations of an IQObject 2014-01-13 10:54:42 -05:00
org.eclipse.cdt.qt.ui Bug 422841 QtIndex API for qmlRegisterType function calls 2014-01-07 15:21:47 -05:00