1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00
cdt/core
Marc-Andre Laperle 987d11ef42 Bug 574333 - Per-project Doxygen options are not flushed until saved a second time
When the options are applied in performApply, the call
DocCommentOwnerManager.setCommentOwner causes to set the
CProjectDescription, which causes UserDefinedEnvironmentSupplier to
flush cdt.core preferences. Then DocCommentOwnerArea.apply populates the
preference storage, but the preferences are not flushed after that
therefore the new options values only exist in memory.

Swapping the calls of DocCommentOwnerManager.setCommentOwner and
DocCommentOwnerArea.apply works but it makes no sense for the flushing
of Documentation options to depend on UserDefinedEnvironmentSupplier
flushing the preferences - it would work by a lucky accident.

A clean option would be to go through the preference's page
IWorkingCopyManager but this would involve a lot of more risky changes
in the DocOwner/Doxygen code and a vast majority of CDT code does not do
that.

Instead, this change explicitly calls CCoreInternals.savePreferences
which flushes the preferences, just like Indexer options does.

Change-Id: Id9a57cde47794f57f26ae295ec01eeb1df9aa120
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-06-20 00:38:08 -04:00
..
org.eclipse.cdt.core Bug 568957 - Missing significant macros on hdrs with pragma once syntax 2021-05-17 21:59:39 -04:00
org.eclipse.cdt.core.linux [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.linux.aarch64 [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.linux.ppc64le [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.linux.x86_64 [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.macosx [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.native Bug 573677: Mark methods that don't handle commands well as deprecated 2021-06-14 22:20:28 -04:00
org.eclipse.cdt.core.tests [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.win32 [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.core.win32.x86_64 [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
org.eclipse.cdt.ui Bug 574333 - Per-project Doxygen options are not flushed until saved a second time 2021-06-20 00:38:08 -04:00
org.eclipse.cdt.ui.tests [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00
pom.xml [releng] Bump to CDT version 10.4.0 2021-06-12 20:52:54 -04:00