Class PreferenceMemento

java.lang.Object
org.eclipse.jface.preference.PreferenceMemento

public class PreferenceMemento extends Object
A utility to change and remember preference values and later restore there original value. The first time a preference value is changed its current value is stored. Later you can reset all preference values (which are changed through this class) to the state they had when creating the memento.

This class is most useful for testing to prevent leakage of preference changes between individual tests.

Since:
3.18