[duplicate code] Unify saving in preference pages
commitecfb0fb8361fa829d736d0168031ec322bdc1f4e
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 6 Jan 2017 13:03:17 +0000 (6 14:03 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Fri, 6 Jan 2017 14:24:31 +0000 (6 15:24 +0100)
treed51446ae368d0269f1665e82f101fcadbbca44b5
parentef884344c8bbbd12a4996ee8de03d2a4634c6ef5
[duplicate code] Unify saving in preference pages

Provide an abstract super class that encapsulates the handling of a
second preference store and its saving, if necessary. The framework
only saves the primary preference store, but not other stores that
might be used by individual field editors. See also commit 0fab91c.[1]

[1] https://git.eclipse.org/r/#/c/78028/

Change-Id: I68ac0f6807bcae10d598e8e090cee48d2c8ac830
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/CommittingPreferencePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/DoublePreferencesPreferencePage.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitPreferenceRoot.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/ProjectsPreferencePage.java