cdt.debug.core preferences not initialized properly [message #117791] |
Fri, 27 August 2004 12:57  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02988 seconds