eclipse-platform / eclipse.platform.ui

Eclipse Platform
https://projects.eclipse.org/projects/eclipse.platform
Eclipse Public License 2.0
81 stars 184 forks source link

'Restore Defaults' button uses a different value when USE_MARKER_LIMITS preference is false. #2323

Open eobrienPilz opened 1 month ago

eobrienPilz commented 1 month ago

The FiltersConfigurationDialog has a 'Restore Defaults' button to restore the dialog to its default state.

image

If USE_MARKER_LIMITS preference is false then 'items per group' is restored to 1000.

int markerLimits = useMarkerLimits ? preferenceStore.getInt(IDEInternalPreferences.MARKER_LIMITS_VALUE) : 1000;

This is in contrast to the default value for 'items per group' of 100 when Eclipse is first launched.

node.putInt(IDEInternalPreferences.MARKER_LIMITS_VALUE, 100);

The restore default button should restore the 'items per group' to the same value as on first launch.

deepika-u commented 3 weeks ago

@eobrienPilz How do i get to FiltersConfigurationDialog? Can you please share the steps to recreate the problem as such.

eobrienPilz commented 3 weeks ago

@deepika-u Steps to reproduce

eobrienPilz commented 3 weeks ago

@deepika-u Let me know if you need anything else to reproduce the issue.

deepika-u commented 1 week ago

Hi @eobrienPilz, I have my eclipse installation at C:\e\i\eclipse-SDK-I20240601-0610_4.32rc2a

I am on below environment as of now Eclipse SDK Version: 2024-06 (4.32) Build id: I20240601-0610 OS: Windows 11, v.10.0, x86_64 / win32 Java vendor: Oracle Corporation Java runtime version: 22+36-2370 Java version: 22

This is 4.32 rc2 build. I have also tried on 4.33 and i am seeing the same behavior. Tried multiple times. Sorry for the delayed response. I am not seeing the behavior of use limits as unchecked never. Am i missing any steps listed above or if i am wrong at any of the step. When always do a "Restore Defaults" it is going back to 100 as usual(never 1000).