mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix initialization of PE view options
This commit is contained in:
parent
d1dd70ab0b
commit
583077dbfa
1 changed files with 21 additions and 20 deletions
|
@ -124,14 +124,15 @@ public class CNavigatorContentProvider extends CViewContentProvider implements I
|
|||
boolean showCUChildren= store.getBoolean(PreferenceConstants.PREF_SHOW_CU_CHILDREN);
|
||||
boolean groupIncludes= store.getBoolean(PreferenceConstants.CVIEW_GROUP_INCLUDES);
|
||||
if (memento != null) {
|
||||
String mementoValue= memento.getString(PreferenceConstants.PREF_SHOW_CU_CHILDREN);
|
||||
if (mementoValue != null) {
|
||||
showCUChildren= Boolean.valueOf(mementoValue).booleanValue();
|
||||
}
|
||||
mementoValue= memento.getString(PreferenceConstants.CVIEW_GROUP_INCLUDES);
|
||||
if (mementoValue != null) {
|
||||
groupIncludes= Boolean.valueOf(mementoValue).booleanValue();
|
||||
}
|
||||
// options controlled by preference only
|
||||
// String mementoValue= memento.getString(PreferenceConstants.PREF_SHOW_CU_CHILDREN);
|
||||
// if (mementoValue != null) {
|
||||
// showCUChildren= Boolean.valueOf(mementoValue).booleanValue();
|
||||
// }
|
||||
// mementoValue= memento.getString(PreferenceConstants.CVIEW_GROUP_INCLUDES);
|
||||
// if (mementoValue != null) {
|
||||
// groupIncludes= Boolean.valueOf(mementoValue).booleanValue();
|
||||
// }
|
||||
// old workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=186344
|
||||
Integer value= memento.getInteger(LINKING_ENABLED_DELAYED);
|
||||
fLinkingEnabledDelayed= value != null && value.intValue() != 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue