Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » cdt.debug.core preferences not initialized properly
cdt.debug.core preferences not initialized properly [message #117791] Fri, 27 August 2004 12:57 Go to next message
Eclipse UserFriend
Originally posted by: david.pickens.arc.com

I discovered that the plugin preferences for cdt.debug.core are
inappropriately initialized in the cdt.debug.ui package. This fails to work
if the preferences are accessed from the "cdt.debug.core" plugin before the
"cdt.debug.ui" plugin is loaded, which can occur frequently.

Specifically, the class
"cdt.debug.internal.ui.CDebugUIPreferenceInitializer" invokes
"CDebugPreferencePage.initDefaults()" which initializes both the debug.ui
and debug.core preferences. The problem is that the latter may have already
been initialized and its preferences previously accessed.

The solution is to provide a CDebugCorePreferenceInitializer class in the
cdt.debug.core plugin and reference it from the
"org.eclipse.runtime.preferences" extension.

I discovered this problem when I noticed that the Register View Auto-refresh
button was off by default (this is a *wrong* default). I set its default
value to true in "CDebugPreferencePage.initDefaults()", assuming this was
the prefered place to set such defaults. It only worked about 50% of the
time. I tracked it down to the problem as stated above.

Would it be appropriate to report this problem on Bugzilla?

--David Pickens
Re: cdt.debug.core preferences not initialized properly [message #118123 is a reply to message #117791] Mon, 30 August 2004 10:57 Go to previous message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

David,
Please, submit a bug and attach a patch if you have a solution.

"David Pickens" <david.pickens@arc.com> wrote in message
news:cgnp0f$gfj$1@eclipse.org...
> I discovered that the plugin preferences for cdt.debug.core are
> inappropriately initialized in the cdt.debug.ui package. This fails to
work
> if the preferences are accessed from the "cdt.debug.core" plugin before
the
> "cdt.debug.ui" plugin is loaded, which can occur frequently.
>
> Specifically, the class
> "cdt.debug.internal.ui.CDebugUIPreferenceInitializer" invokes
> "CDebugPreferencePage.initDefaults()" which initializes both the debug.ui
> and debug.core preferences. The problem is that the latter may have
already
> been initialized and its preferences previously accessed.
>
> The solution is to provide a CDebugCorePreferenceInitializer class in the
> cdt.debug.core plugin and reference it from the
> "org.eclipse.runtime.preferences" extension.
>
> I discovered this problem when I noticed that the Register View
Auto-refresh
> button was off by default (this is a *wrong* default). I set its default
> value to true in "CDebugPreferencePage.initDefaults()", assuming this was
> the prefered place to set such defaults. It only worked about 50% of the
> time. I tracked it down to the problem as stated above.
>
> Would it be appropriate to report this problem on Bugzilla?
>
> --David Pickens
>
>
Previous Topic:problems to debug in threads
Next Topic:How to setup include path for cross-compile toolchain with managed build
Goto Forum:
  


Current Time: Mon Apr 28 02:58:44 EDT 2025

Powered by FUDForum. Page generated in 0.02988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top