Skip to content

Commit a476cc1

Browse files
Copilotlaeubi
andcommitted
Add hierarchical preferences test to test suite and initialize default value
Co-authored-by: laeubi <[email protected]>
1 parent 4b91660 commit a476cc1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/PreferenceInitializer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ public void initializeDefaultPreferences() {
103103
// encoding defaults
104104
node.put(ResourcesPlugin.PREF_ENCODING, PREF_ENCODING_DEFAULT);
105105

106+
// hierarchical project preferences defaults
107+
node.putBoolean(ResourcesPlugin.PREF_ENABLE_HIERARCHICAL_PROJECT_PREFERENCES,
108+
ResourcesPlugin.DEFAULT_PREF_ENABLE_HIERARCHICAL_PROJECT_PREFERENCES);
109+
106110
// parallel builds defaults
107111
node.putInt(ResourcesPlugin.PREF_MAX_CONCURRENT_BUILDS, PREF_MAX_CONCURRENT_BUILDS_DEFAULT);
108112
}

resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/resources/AllInternalResourcesTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@Suite
2525
@SelectClasses({ //
2626
Bug544975Test.class, //
27+
HierarchicalProjectPreferencesTest.class, //
2728
ModelObjectReaderWriterTest.class, //
2829
ProjectBuildConfigsTest.class, //
2930
ProjectDynamicReferencesTest.class, //

0 commit comments

Comments
 (0)